nvim-treesitter/queries/promql/highlights.scm
Michael Hoffmann b64ea2ec44 feat(promql,yaml): add parser and yaml injections
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
2023-07-18 03:03:11 -04:00

54 lines
563 B
Scheme

; highlights.scm
[
"*"
"/"
"%"
"+"
"-"
">"
">="
"<"
"<="
"="
"=~"
"!="
"!~"
] @operator
[
"and"
"unless"
"or"
"bool"
] @keyword.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
[
"by"
"without"
] @function
(comment) @comment @spell
(ERROR) @error