mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
55
runtime/queries/twig/highlights.scm
Normal file
55
runtime/queries/twig/highlights.scm
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
(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)
|
||||
3
runtime/queries/twig/injections.scm
Normal file
3
runtime/queries/twig/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
((content) @injection.content
|
||||
(#set! injection.language "html"))
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue