1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:10:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/twig/highlights.scm

56 lines
782 B
Scheme

(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
[
","
"."
] @punctuation.delimiter
[
"?"
":"
"="
"|"
] @operator
(interpolated_string ["#{" "}"] @punctuation.special)
[
"(" ")"
"[" "]"
] @punctuation.bracket
(hash ["{" "}"] @punctuation.bracket)