nvim-treesitter/queries/hcl/highlights.scm

81 lines
795 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
2021-06-30 23:39:24 +02:00
[
":"
"="
] @none
2021-06-28 19:11:33 +02:00
[
"for"
"in"
] @repeat
[
"if"
] @conditional
[
(string_lit)
(quoted_template)
(heredoc_template)
] @string
2021-06-30 23:39:24 +02:00
[
(heredoc_identifier) @punctuation.delimiter
(heredoc_start) @punctuation.delimiter
]
2021-06-28 20:05:27 +02:00
(template_interpolation) @string.escape
2021-06-28 19:11:33 +02:00
(numeric_lit) @number
(bool_lit) @boolean
(null_lit) @constant
(comment) @comment
2021-07-01 08:43:42 +02:00
(identifier) @variable
2021-06-28 19:11:33 +02:00
2021-06-30 23:39:24 +02:00
(block (identifier) @type)
2021-06-28 19:11:33 +02:00
(function_call (identifier) @function)
2021-07-01 08:43:42 +02:00
(attribute (identifier) @field)
2021-06-28 19:11:33 +02:00
(ERROR) @error