tree-sitter-logstash/queries/highlights.scm

60 lines
480 B
Scheme

; Keywords
[
"input"
"output"
"filter"
] @keyword
[
"if"
"else"
"elseif"
] @keyword.conditional
[
(plugin_name)
] @function
; Literals
[
(string)
(bareword)
] @string
(regexp) @string.special.regex
[
(number)
] @number
[
(true)
(false)
] @boolean
(comment) @comment
; Operators
[
(compare_operator)
] @operator
[
","
"."
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
(selector_element) @variable.parameter