nvim-treesitter/runtime/queries/promql/highlights.scm
2025-05-12 18:43:40 +02:00

55 lines
541 B
Scheme

; highlights.scm
[
"*"
"/"
"%"
"+"
"-"
">"
">="
"<"
"<="
"="
"=~"
"!="
"!~"
] @operator
[
"{"
"}"
"["
"]"
"("
")"
] @punctuation.bracket
(float_literal) @number.float
(string_literal) @string
(metric_name) @type
(range_selection) @type
(subquery_range_selection) @type
(label_name) @variable.member
((label_name)
[
"=~"
"!~"
]
(label_value) @string.regexp)
((label_name)
[
"="
"!="
]
(label_value) @string)
(function_name) @function.call
(comment) @comment @spell