mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
fix(lua): properly highlight labels
This commit is contained in:
parent
4536156f32
commit
2170a36416
1 changed files with 7 additions and 2 deletions
|
|
@ -8,8 +8,6 @@
|
||||||
"local"
|
"local"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(label_statement) @label
|
|
||||||
|
|
||||||
(break_statement) @keyword
|
(break_statement) @keyword
|
||||||
|
|
||||||
(do_statement
|
(do_statement
|
||||||
|
|
@ -109,6 +107,7 @@
|
||||||
[
|
[
|
||||||
";"
|
";"
|
||||||
":"
|
":"
|
||||||
|
"::"
|
||||||
","
|
","
|
||||||
"."
|
"."
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
@ -136,6 +135,12 @@
|
||||||
(["<" ">"] @punctuation.bracket
|
(["<" ">"] @punctuation.bracket
|
||||||
(identifier) @attribute)))
|
(identifier) @attribute)))
|
||||||
|
|
||||||
|
;; Labels
|
||||||
|
|
||||||
|
(label_statement (identifier) @label)
|
||||||
|
|
||||||
|
(goto_statement (identifier) @label)
|
||||||
|
|
||||||
;; Constants
|
;; Constants
|
||||||
|
|
||||||
((identifier) @constant
|
((identifier) @constant
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue