mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -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"
|
||||
] @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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue