nvim-treesitter/queries/hcl/highlights.scm

74 lines
796 B
Scheme
Raw Normal View History

2021-06-28 19:11:33 +02:00
; highlights.scm
[
"!"
"\*"
"/"
"%"
"\+"
"-"
">"
">="
"<"
"<="
"=="
"!="
"&&"
"||"
] @operator
[
"{"
"}"
"["
"]"
"("
")"
2021-06-28 20:05:27 +02:00
] @punctuation.bracket
2021-06-28 19:11:33 +02:00
[
"."
2021-06-28 20:05:27 +02:00
".*"
2021-06-28 19:11:33 +02:00
","
2021-06-28 20:05:27 +02:00
"[*]"
] @punctuation.delimiter
2021-06-28 19:11:33 +02:00
[
(ellipsis)
"\?"
":"
"=>"
2021-06-28 20:05:27 +02:00
] @punctuation.special
2021-06-28 19:11:33 +02:00
[
"for"
"in"
] @repeat
[
"if"
] @conditional
[
(string_lit)
(quoted_template)
(heredoc_template)
] @string
2021-06-28 20:05:27 +02:00
(template_interpolation) @string.escape
2021-06-28 19:11:33 +02:00
(heredoc_identifier) @namespace
(heredoc_start) @namespace
(numeric_lit) @number
(bool_lit) @boolean
(null_lit) @constant
(comment) @comment
2021-06-28 20:08:04 +02:00
(identifier) @symbol
2021-06-28 19:11:33 +02:00
(block (identifier) @namespace)
(function_call (identifier) @function)
(function_call (function_arguments) @parameter)
2021-06-28 20:15:23 +02:00
(attribute (identifier) @symbol)
2021-06-28 19:11:33 +02:00
(ERROR) @error