mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 16:00:02 -04:00
fix(lua): update queries
This commit is contained in:
parent
824b063d0d
commit
22f73628f6
2 changed files with 21 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue