Universal-Variability-Language / uvl-lsp

Language server protocol for the Universal Variability Language (UVL)
MIT License
10 stars 4 forks source link

Different Highlighting Colors for Imports #89

Open SundermannC opened 1 year ago

SundermannC commented 1 year ago

Currently, imports and aliases have the regular reference color. A distinguishable color may help recognizing the imports.

image

TobiUUlm commented 1 year ago

This needs some modification of the query.rs file where you can set the type of found "keywords".
The Treesitter Query Language is used here.
Or you can do this manually by evaluating all found nodes/keywords and checking if they are part of the imports or not (does not seem like the proper way)