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 ;;; 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"