fix(lua): update queries

This commit is contained in:
Thomas Vigouroux 2020-05-07 09:23:33 +02:00
parent 824b063d0d
commit 22f73628f6
2 changed files with 21 additions and 28 deletions

View file

@ -3,16 +3,16 @@
;;; Builtins
;; Keywords
"local" @keyword
"if" @keyword
"then" @keyword
"else" @keyword
"elseif" @keyword
"if" @conditional
"then" @conditional
"else" @conditional
"elseif" @conditional
"end" @keyword
"return" @keyword
"do" @keyword
"while" @keyword
"repeat" @keyword
"for" @keyword
"do" @repeat
"while" @repeat
"repeat" @repeat
"for" @repeat
(break_statement) @keyword
"goto" @keyword
@ -43,15 +43,16 @@
"#" @operator
;; Constants
(false) @constant
(true) @constant
(nil) @constant
(false) @boolean
(true) @boolean
(nil) @constant.builtin
(spread) @constant ;; "..."
;; Nodes
(function "function" @function "end" @function)
(function_definition "function" @function "end" @function)
(local_function "function" @function "end" @function)
(table "{" @operator "}" @operator)
(table "{" @constructor "}" @constructor)
(comment) @comment
(string) @string
(number) @number