feat: add htmldjango

This commit is contained in:
ObserverOfTime 2022-10-03 19:41:45 +03:00 committed by Stephan Seitz
parent 08e1adae53
commit f5f7c7e004
7 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,4 @@
[
(paired_statement)
(paired_comment)
] @fold

View 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

View file

@ -0,0 +1,3 @@
(paired_statement) @indent
(end_paired_statement) @indent_end
(branch_statement) @branch

View file

@ -0,0 +1 @@
(content) @html @combined