mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
Lua: fix loop and conditional keywords highlights
This commit is contained in:
parent
02735aae55
commit
5504b84d21
1 changed files with 33 additions and 15 deletions
|
|
@ -2,27 +2,45 @@
|
||||||
|
|
||||||
;;; Builtins
|
;;; Builtins
|
||||||
;; Keywords
|
;; Keywords
|
||||||
(
|
|
||||||
"if" @conditional
|
(if_statement
|
||||||
"end" @conditional
|
[
|
||||||
)
|
"if"
|
||||||
|
"then"
|
||||||
|
"end"
|
||||||
|
] @conditional)
|
||||||
|
|
||||||
[
|
[
|
||||||
"else"
|
"else"
|
||||||
"elseif"
|
"elseif"
|
||||||
"then"
|
] @contional
|
||||||
] @conditional
|
|
||||||
|
|
||||||
|
(for_statement
|
||||||
(
|
[
|
||||||
[
|
|
||||||
"do"
|
|
||||||
"while"
|
|
||||||
"repeat"
|
|
||||||
"for"
|
"for"
|
||||||
] @repeat
|
"do"
|
||||||
|
"end"
|
||||||
|
] @repeat)
|
||||||
|
|
||||||
"end" @repeat
|
(for_in_statement
|
||||||
)
|
[
|
||||||
|
"for"
|
||||||
|
"do"
|
||||||
|
"end"
|
||||||
|
] @repeat)
|
||||||
|
|
||||||
|
(while_statement
|
||||||
|
[
|
||||||
|
"while"
|
||||||
|
"do"
|
||||||
|
"end"
|
||||||
|
] @repeat)
|
||||||
|
|
||||||
|
(repeat_statement
|
||||||
|
[
|
||||||
|
"repeat"
|
||||||
|
"until"
|
||||||
|
] @repeat)
|
||||||
|
|
||||||
[
|
[
|
||||||
"in"
|
"in"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue