nvim-treesitter/queries/twig/highlights.scm

56 lines
782 B
Scheme
Raw Normal View History

2022-10-06 13:39:46 +02:00
(comment) @comment @spell
(filter_identifier) @function.call
(function_identifier) @function.call
(test) @function.builtin
(variable) @variable
(string) @string
(interpolated_string) @string
(operator) @operator
(number) @number
(boolean) @boolean
(null) @constant.builtin
(keyword) @keyword
(attribute) @attribute
(tag) @tag
(conditional) @conditional
(repeat) @repeat
(method) @method
(parameter) @parameter
[
"{{"
"}}"
"{{-"
"-}}"
"{{~"
"~}}"
"{%"
"%}"
"{%-"
"-%}"
"{%~"
"~%}"
] @tag.delimiter
[
","
"."
2022-11-30 10:51:24 +01:00
] @punctuation.delimiter
[
"?"
":"
"="
2022-11-30 10:51:24 +01:00
"|"
] @operator
2022-10-22 18:23:22 +03:00
(interpolated_string ["#{" "}"] @punctuation.special)
[
2022-10-22 18:23:22 +03:00
"(" ")"
"[" "]"
] @punctuation.bracket
2022-10-22 18:23:22 +03:00
(hash ["{" "}"] @punctuation.bracket)