109 lines
1.2 KiB
Scheme
109 lines
1.2 KiB
Scheme
(comment) @comment @spell
|
|
|
|
(null) @constant.builtin
|
|
|
|
(timestamp) @constant
|
|
|
|
(closure_variables
|
|
(ident) @variable.parameter)
|
|
|
|
(integer) @number
|
|
|
|
(float) @number.float
|
|
|
|
[
|
|
(string)
|
|
(raw_string)
|
|
] @string
|
|
|
|
[
|
|
(raw_string_escape_sequence)
|
|
(escape_sequence)
|
|
(regex_escape_sequence)
|
|
] @string.escape
|
|
|
|
(string_template
|
|
"{{" @punctuation.special
|
|
(_)
|
|
"}}" @punctuation.special)
|
|
|
|
(regex) @string.regexp
|
|
|
|
(boolean) @boolean
|
|
|
|
(ident) @variable
|
|
|
|
(noop) @variable.builtin
|
|
|
|
(function_call
|
|
(ident) @function.call)
|
|
|
|
; VRL queries
|
|
(query
|
|
[
|
|
(event)
|
|
(metadata)
|
|
] @variable.builtin)
|
|
|
|
(query
|
|
(path
|
|
[
|
|
(field) @variable
|
|
(string) @string
|
|
(index) @number
|
|
"." @punctuation.delimiter
|
|
]))
|
|
|
|
"return" @keyword.return
|
|
|
|
"abort" @keyword.exception
|
|
|
|
[
|
|
"if"
|
|
"else"
|
|
] @keyword.conditional
|
|
|
|
[
|
|
"="
|
|
"=="
|
|
"!="
|
|
"|="
|
|
">"
|
|
">="
|
|
"<"
|
|
"<="
|
|
"+"
|
|
"-"
|
|
"*"
|
|
"/"
|
|
"&&"
|
|
"||"
|
|
"??"
|
|
"|"
|
|
"!"
|
|
] @operator
|
|
|
|
[
|
|
"->"
|
|
":"
|
|
";"
|
|
","
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"["
|
|
"]"
|
|
"{"
|
|
"}"
|
|
] @punctuation.bracket
|
|
|
|
(closure_variables
|
|
"|" @punctuation.bracket)
|
|
|
|
(function_call
|
|
(ident) @keyword.exception
|
|
"!"
|
|
(#any-of? @keyword.exception "assert" "assert_eq"))
|