mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
81
runtime/queries/twig/highlights.scm
Normal file
81
runtime/queries/twig/highlights.scm
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
(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) @keyword.conditional
|
||||
|
||||
(repeat) @keyword.repeat
|
||||
|
||||
(method) @function.method
|
||||
|
||||
(parameter) @variable.parameter
|
||||
|
||||
[
|
||||
"{{"
|
||||
"}}"
|
||||
"{{-"
|
||||
"-}}"
|
||||
"{{~"
|
||||
"~}}"
|
||||
"{%"
|
||||
"%}"
|
||||
"{%-"
|
||||
"-%}"
|
||||
"{%~"
|
||||
"~%}"
|
||||
] @tag.delimiter
|
||||
|
||||
[
|
||||
","
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"?"
|
||||
":"
|
||||
"="
|
||||
"|"
|
||||
] @operator
|
||||
|
||||
(interpolated_string
|
||||
[
|
||||
"#{"
|
||||
"}"
|
||||
] @punctuation.special)
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
(hash
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket)
|
||||
6
runtime/queries/twig/injections.scm
Normal file
6
runtime/queries/twig/injections.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((content) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
Loading…
Add table
Add a link
Reference in a new issue