usethesource / rascal-language-servers

An LSP server for Rascal which includes an easy-to-use LSP generator for languages implemented in Rascal, and an interactive terminal REPL.
BSD 2-Clause "Simplified" License
10 stars 7 forks source link

Generate semantic tokens to indicate absence of highlighting #407

Closed sungshik closed 1 month ago

sungshik commented 1 month ago

This PR extends the semantic highlighter with generation of tokens to explicitly indicate absence of highlighting. To avoid generating an excessive number of such tokens, the tokenizer on-the-fly identifies maximal consecutive regions of "absence of highlighting" (separated by newlines) and generates only a single token per region.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud