Lua: fix loop and conditional keywords highlights

This commit is contained in:
Santos Gallegos 2020-09-05 09:53:21 -05:00 committed by Thomas Vigouroux
parent 02735aae55
commit 5504b84d21

View file

@ -2,27 +2,45 @@
;;; Builtins
;; Keywords
(
"if" @conditional
"end" @conditional
)
(if_statement
[
"if"
"then"
"end"
] @conditional)
[
"else"
"elseif"
"then"
] @conditional
] @contional
(
[
"do"
"while"
"repeat"
(for_statement
[
"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"