Evergreen-lxl / Evergreen.lxl

🌳 Treesitter support for Lite XL.
MIT License
35 stars 7 forks source link

fix: labels are not properly highlighted #42

Closed TorchedSammy closed 1 year ago

TorchedSammy commented 1 year ago

(in lua, thats where i noticed) even though in the lua query labels have a separate capture, they are still highlighted as variables instead of labels.

a label_statement contains an identifier (the name of the label) so it will capture both as an identifier and label_statement, but it ends up doing nothing for the label_statement and does the identifier instead

if the fix here is put earlier with a goto continue, it fixes the highlight issue, but text will be cut off so i am not sure how to fix this