tree-sitter-logstash/queries/highlights.scm

60 lines
480 B
Scheme
Raw Normal View History

2024-01-23 22:59:32 -05:00
; Keywords
[
"input"
"output"
"filter"
] @keyword
[
2024-01-23 23:41:20 -05:00
"if"
"else"
"elseif"
] @keyword.conditional
[
2024-01-23 23:41:20 -05:00
(plugin_name)
] @function
2024-01-23 22:59:32 -05:00
; Literals
[
(string)
(bareword)
] @string
2024-01-23 23:41:20 -05:00
(regexp) @string.special.regex
2024-01-23 22:59:32 -05:00
[
(number)
] @number
[
(true)
(false)
] @boolean
2024-01-23 22:59:32 -05:00
(comment) @comment
; Operators
[
(compare_operator)
2024-01-23 22:59:32 -05:00
] @operator
[
","
"."
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
2024-01-23 23:41:20 -05:00
(selector_element) @variable.parameter