nvim-treesitter/queries/ql/highlights.scm

131 lines
1.4 KiB
Scheme
Raw Normal View History

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