mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
157
runtime/queries/jinja_inline/highlights.scm
Normal file
157
runtime/queries/jinja_inline/highlights.scm
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
"#" @keyword.directive
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(number_literal) @number
|
||||
|
||||
(float_literal) @number.float
|
||||
|
||||
(boolean_literal) @boolean
|
||||
|
||||
(null_literal) @constant
|
||||
|
||||
"defined" @constant
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
","
|
||||
"."
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
(attribute_ignore)
|
||||
(attribute_context)
|
||||
"recursive"
|
||||
] @attribute.builtin
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
||||
|
||||
(binary_operator) @operator
|
||||
|
||||
[
|
||||
"block"
|
||||
"with"
|
||||
"filter"
|
||||
"macro"
|
||||
"set"
|
||||
"trans"
|
||||
"pluralize"
|
||||
"autoescape"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"endtrans"
|
||||
"endblock"
|
||||
"endwith"
|
||||
"endfilter"
|
||||
"endmacro"
|
||||
"endcall"
|
||||
"endset"
|
||||
"endtrans"
|
||||
"endautoescape"
|
||||
] @keyword
|
||||
|
||||
(do_statement
|
||||
"do" @keyword)
|
||||
|
||||
[
|
||||
"include"
|
||||
"import"
|
||||
"from"
|
||||
"extends"
|
||||
"as"
|
||||
] @keyword.import
|
||||
|
||||
(import_statement
|
||||
(identifier) @variable)
|
||||
|
||||
(import_as
|
||||
(identifier) @variable)
|
||||
|
||||
[
|
||||
"if"
|
||||
"else"
|
||||
"endif"
|
||||
"elif"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"for"
|
||||
"in"
|
||||
"continue"
|
||||
"break"
|
||||
"endfor"
|
||||
] @keyword.repeat
|
||||
|
||||
"call" @function.call
|
||||
|
||||
(function_call
|
||||
(identifier) @function.call)
|
||||
|
||||
(arg
|
||||
(identifier) @variable.parameter)
|
||||
|
||||
(arg
|
||||
(expression
|
||||
(binary_expression
|
||||
(unary_expression
|
||||
(primary_expression
|
||||
(identifier) @variable.parameter)))))
|
||||
|
||||
(expression
|
||||
"."
|
||||
(expression)+ @variable.member)
|
||||
|
||||
(assignment_expression
|
||||
"."
|
||||
(identifier)+ @variable.member)
|
||||
|
||||
(inline_trans
|
||||
"_" @function.builtin)
|
||||
|
||||
"debug" @function.builtin
|
||||
|
||||
(raw_end) @keyword
|
||||
|
||||
(raw_body) @markup.raw.block @nospell
|
||||
|
||||
(builtin_test
|
||||
[
|
||||
"boolean"
|
||||
"even"
|
||||
"in"
|
||||
"mapping"
|
||||
"sequence"
|
||||
"callable"
|
||||
"integer"
|
||||
"ne"
|
||||
"string"
|
||||
"defined"
|
||||
"filter"
|
||||
"iterable"
|
||||
"none"
|
||||
"test"
|
||||
"divisibleby"
|
||||
"float"
|
||||
"le"
|
||||
"number"
|
||||
"eq"
|
||||
"ge"
|
||||
"lower"
|
||||
"odd"
|
||||
"undefined"
|
||||
"escaped"
|
||||
"gt"
|
||||
"lt"
|
||||
"sameas"
|
||||
"upper"
|
||||
] @keyword.operator)
|
||||
2
runtime/queries/jinja_inline/injections.scm
Normal file
2
runtime/queries/jinja_inline/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue