mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
fix: query linting error
This commit is contained in:
parent
2b8440179f
commit
d9fc819cec
1 changed files with 75 additions and 11 deletions
|
|
@ -1,68 +1,132 @@
|
|||
; Keywords
|
||||
(kDollar) @keyword
|
||||
|
||||
(kInclude) @keyword
|
||||
|
||||
(kConst) @keyword
|
||||
|
||||
(kVar) @keyword
|
||||
|
||||
(kFunc) @keyword
|
||||
|
||||
(kIs) @keyword
|
||||
|
||||
(kLocal) @keyword
|
||||
|
||||
(kBegin) @keyword
|
||||
|
||||
(kEndFunc) @keyword
|
||||
|
||||
(kIf) @keyword
|
||||
|
||||
(kThen) @keyword
|
||||
|
||||
(kElsif) @keyword
|
||||
|
||||
(kElse) @keyword
|
||||
|
||||
(kEndIf) @keyword
|
||||
|
||||
(kFor) @keyword
|
||||
|
||||
(kRange) @keyword
|
||||
|
||||
(kTo) @keyword
|
||||
|
||||
(kDo) @keyword
|
||||
|
||||
(kEndFor) @keyword
|
||||
|
||||
(kRepeat) @keyword
|
||||
|
||||
(kUntil) @keyword
|
||||
|
||||
(kWhile) @keyword
|
||||
|
||||
(kEndWhile) @keyword
|
||||
|
||||
(kCase) @keyword
|
||||
|
||||
(kOf) @keyword
|
||||
(kWhen) @keyword ; New
|
||||
|
||||
(kWhen) @keyword
|
||||
|
||||
(kOtherwise) @keyword
|
||||
|
||||
(kEndCase) @keyword
|
||||
|
||||
; Identifiers
|
||||
(identifier) @variable
|
||||
(declVar (identifier) @variable)
|
||||
(declConst (identifier) @constant)
|
||||
(exprCall (identifier) @function)
|
||||
(stmtFor (identifier) @variable)
|
||||
(exprAssign (identifier) @variable)
|
||||
|
||||
(declVar
|
||||
(identifier) @variable)
|
||||
|
||||
(declConst
|
||||
(identifier) @constant)
|
||||
|
||||
(exprCall
|
||||
(identifier) @function)
|
||||
|
||||
(stmtFor
|
||||
(identifier) @variable)
|
||||
|
||||
(exprAssign
|
||||
(identifier) @variable)
|
||||
|
||||
; Types
|
||||
(typeProc) @type
|
||||
|
||||
(typeString) @type
|
||||
|
||||
(typeInteger) @type
|
||||
|
||||
; Literals
|
||||
(string) @string
|
||||
|
||||
(integer) @number
|
||||
|
||||
; Operators
|
||||
(kConcat) @operator
|
||||
|
||||
(kEq) @operator
|
||||
|
||||
(kNeq) @operator
|
||||
|
||||
(kLt) @operator
|
||||
|
||||
(kGt) @operator
|
||||
|
||||
(kLeq) @operator
|
||||
|
||||
(kGeq) @operator
|
||||
|
||||
(kAssign) @operator
|
||||
|
||||
(kPlus) @operator
|
||||
|
||||
(kMinus) @operator
|
||||
|
||||
(kMult) @operator
|
||||
|
||||
(kDiv) @operator
|
||||
(kRangeOp) @operator ; New
|
||||
(kSetUnion) @operator ; New
|
||||
|
||||
(kRangeOp) @operator
|
||||
|
||||
(kSetUnion) @operator
|
||||
|
||||
; Punctuation
|
||||
":" @punctuation.delimiter
|
||||
|
||||
";" @punctuation.delimiter
|
||||
|
||||
"(" @punctuation.bracket
|
||||
|
||||
")" @punctuation.bracket
|
||||
"{" @punctuation.bracket ; New
|
||||
"}" @punctuation.bracket ; New
|
||||
|
||||
"{" @punctuation.bracket
|
||||
|
||||
"}" @punctuation.bracket
|
||||
|
||||
(kEndDot) @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue