nvim-treesitter/runtime/queries/promql/highlights.scm
2023-09-09 16:16:51 +02:00

42 lines
470 B
Scheme

; highlights.scm
[
"*"
"/"
"%"
"+"
"-"
">"
">="
"<"
"<="
"="
"=~"
"!="
"!~"
] @operator
[
"{"
"}"
"["
"]"
"("
")"
] @punctuation.bracket
(float_literal) @float
(string_literal) @string
(metric_name) @type
(range_selection) @text.strong @type
(subquery_range_selection) @text.strong @type
(label_name) @field
(label_value) @text.underline @string.regex
(function_name) @function.call
(comment) @comment @spell
(ERROR) @error