1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:20:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/ql/highlights.scm
2022-04-14 12:01:23 +08:00

131 lines
1.4 KiB
Scheme
Vendored

[
"as"
"asc"
"by"
"class"
"desc"
"extends"
"forall"
"forex"
"from"
"implies"
"in"
"module"
"newtype"
"order"
"select"
"where"
(predicate)
(result)
(specialId)
] @keyword
[
"and"
"not"
"or"
] @keyword.operator
[
"avg"
"any"
"count"
"concat"
"exists"
"max"
"min"
"instanceof"
"rank"
"sum"
"strictconcat"
"strictcount"
"strictsum"
] @function.builtin
[
"import"
] @include
[
"if"
"then"
"else"
] @conditional
[
(true)
(false)
] @boolean
[
(this)
(super)
] @variable.builtin
[
"boolean"
"float"
"int"
"date"
"string"
] @type.builtin
(annotName) @attribute
[
"<"
"<="
"="
">"
">="
"-"
"!="
"/"
"*"
"%"
"+"
"::"
] @operator
[
"("
")"
"{"
"}"
"["
"]"
] @punctuation.bracket
[
","
"|"
] @punctuation.delimiter
(moduleExpr (simpleId) @namespace)
(module name: (moduleName) @namespace)
(dataclass name: (className) @type)
(datatype name: (className) @type)
(typeExpr name: (className) @type)
(importModuleExpr name: (simpleId) @variable)
(qualModuleExpr name: (simpleId) @variable)
(varName) @variable
(integer) @number
(float) @float
(string) @string
(aritylessPredicateExpr (literalId) @function)
(memberPredicate name: (predicateName) @function)
(classlessPredicate name: (predicateName) @function)
(charpred (className) @function)
[
(line_comment)
(block_comment)
(qldoc)
] @comment