mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -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
4
runtime/queries/htmldjango/folds.scm
Normal file
4
runtime/queries/htmldjango/folds.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(paired_statement)
|
||||
(paired_comment)
|
||||
] @fold
|
||||
35
runtime/queries/htmldjango/highlights.scm
Normal file
35
runtime/queries/htmldjango/highlights.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
; adapted from https://github.com/interdependence/tree-sitter-htmldjango
|
||||
|
||||
[
|
||||
(unpaired_comment)
|
||||
(paired_comment)
|
||||
] @comment @spell
|
||||
|
||||
[
|
||||
"{{" "}}"
|
||||
"{%" "%}"
|
||||
(end_paired_statement)
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"end"
|
||||
(tag_name)
|
||||
] @function
|
||||
|
||||
(variable_name) @variable
|
||||
|
||||
(filter_name) @method
|
||||
(filter_argument) @parameter
|
||||
|
||||
(keyword) @keyword
|
||||
|
||||
(operator) @operator
|
||||
(variable "|" @operator)
|
||||
(paired_statement "=" @operator)
|
||||
(keyword_operator) @keyword.operator
|
||||
|
||||
(number) @number
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(string) @string
|
||||
3
runtime/queries/htmldjango/indents.scm
Normal file
3
runtime/queries/htmldjango/indents.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(paired_statement) @indent.begin
|
||||
(end_paired_statement) @indent.end
|
||||
(branch_statement) @indent.branch
|
||||
3
runtime/queries/htmldjango/injections.scm
Normal file
3
runtime/queries/htmldjango/injections.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
((content) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
Loading…
Add table
Add a link
Reference in a new issue