ruby-lsp
ruby-lsp copied to clipboard
Handle class/module declarations as a `class` token with `declaration` modifier
Motivation
The current semantic highlighting was not handling class Foo < Bar or module Baz constructs and skipping them in semantic highlighting. This PR makes them semantic class tokens with the declaration modifier.
Implementation
Handle visit_class and visit_module callbacks and emit the correct tokens.
Automated Tests
Updated automated tests.