ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Handle class/module declarations as a `class` token with `declaration` modifier

Open paracycle opened this issue 3 years ago • 0 comments

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.

Manual Tests

paracycle avatar Aug 24 '22 19:08 paracycle