fix(lua): properly highlight labels

This commit is contained in:
Amaan Qureshi 2023-03-19 21:04:38 -04:00
parent 4536156f32
commit 2170a36416

View file

@ -8,8 +8,6 @@
"local"
] @keyword
(label_statement) @label
(break_statement) @keyword
(do_statement
@ -109,6 +107,7 @@
[
";"
":"
"::"
","
"."
] @punctuation.delimiter
@ -136,6 +135,12 @@
(["<" ">"] @punctuation.bracket
(identifier) @attribute)))
;; Labels
(label_statement (identifier) @label)
(goto_statement (identifier) @label)
;; Constants
((identifier) @constant