fix: query linting error

This commit is contained in:
Aliqyan-21 2025-06-20 01:09:55 +05:30
parent 2b8440179f
commit d9fc819cec

View file

@ -1,68 +1,132 @@
; Keywords
(kDollar) @keyword (kDollar) @keyword
(kInclude) @keyword (kInclude) @keyword
(kConst) @keyword (kConst) @keyword
(kVar) @keyword (kVar) @keyword
(kFunc) @keyword (kFunc) @keyword
(kIs) @keyword (kIs) @keyword
(kLocal) @keyword (kLocal) @keyword
(kBegin) @keyword (kBegin) @keyword
(kEndFunc) @keyword (kEndFunc) @keyword
(kIf) @keyword (kIf) @keyword
(kThen) @keyword (kThen) @keyword
(kElsif) @keyword (kElsif) @keyword
(kElse) @keyword (kElse) @keyword
(kEndIf) @keyword (kEndIf) @keyword
(kFor) @keyword (kFor) @keyword
(kRange) @keyword (kRange) @keyword
(kTo) @keyword (kTo) @keyword
(kDo) @keyword (kDo) @keyword
(kEndFor) @keyword (kEndFor) @keyword
(kRepeat) @keyword (kRepeat) @keyword
(kUntil) @keyword (kUntil) @keyword
(kWhile) @keyword (kWhile) @keyword
(kEndWhile) @keyword (kEndWhile) @keyword
(kCase) @keyword (kCase) @keyword
(kOf) @keyword (kOf) @keyword
(kWhen) @keyword ; New
(kWhen) @keyword
(kOtherwise) @keyword (kOtherwise) @keyword
(kEndCase) @keyword (kEndCase) @keyword
; Identifiers ; Identifiers
(identifier) @variable (identifier) @variable
(declVar (identifier) @variable)
(declConst (identifier) @constant) (declVar
(exprCall (identifier) @function) (identifier) @variable)
(stmtFor (identifier) @variable)
(exprAssign (identifier) @variable) (declConst
(identifier) @constant)
(exprCall
(identifier) @function)
(stmtFor
(identifier) @variable)
(exprAssign
(identifier) @variable)
; Types ; Types
(typeProc) @type (typeProc) @type
(typeString) @type (typeString) @type
(typeInteger) @type (typeInteger) @type
; Literals ; Literals
(string) @string (string) @string
(integer) @number (integer) @number
; Operators ; Operators
(kConcat) @operator (kConcat) @operator
(kEq) @operator (kEq) @operator
(kNeq) @operator (kNeq) @operator
(kLt) @operator (kLt) @operator
(kGt) @operator (kGt) @operator
(kLeq) @operator (kLeq) @operator
(kGeq) @operator (kGeq) @operator
(kAssign) @operator (kAssign) @operator
(kPlus) @operator (kPlus) @operator
(kMinus) @operator (kMinus) @operator
(kMult) @operator (kMult) @operator
(kDiv) @operator (kDiv) @operator
(kRangeOp) @operator ; New
(kSetUnion) @operator ; New (kRangeOp) @operator
(kSetUnion) @operator
; Punctuation ; Punctuation
":" @punctuation.delimiter ":" @punctuation.delimiter
";" @punctuation.delimiter ";" @punctuation.delimiter
"(" @punctuation.bracket "(" @punctuation.bracket
")" @punctuation.bracket ")" @punctuation.bracket
"{" @punctuation.bracket ; New
"}" @punctuation.bracket ; New "{" @punctuation.bracket
"}" @punctuation.bracket
(kEndDot) @punctuation.delimiter (kEndDot) @punctuation.delimiter
; Comments ; Comments
(comment) @comment (comment) @comment