mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat: add htmldjango
This commit is contained in:
parent
08e1adae53
commit
f5f7c7e004
7 changed files with 57 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [hlsl](https://github.com/theHamsta/tree-sitter-hlsl) (maintained by @theHamsta)
|
- [x] [hlsl](https://github.com/theHamsta/tree-sitter-hlsl) (maintained by @theHamsta)
|
||||||
- [x] [hocon](https://github.com/antosha417/tree-sitter-hocon) (maintained by @antosha417)
|
- [x] [hocon](https://github.com/antosha417/tree-sitter-hocon) (maintained by @antosha417)
|
||||||
- [x] [html](https://github.com/tree-sitter/tree-sitter-html) (maintained by @TravonteD)
|
- [x] [html](https://github.com/tree-sitter/tree-sitter-html) (maintained by @TravonteD)
|
||||||
|
- [x] [htmldjango](https://github.com/interdependence/tree-sitter-htmldjango) (experimental, maintained by @ObserverOfTime)
|
||||||
- [x] [http](https://github.com/rest-nvim/tree-sitter-http) (maintained by @NTBBloodbath)
|
- [x] [http](https://github.com/rest-nvim/tree-sitter-http) (maintained by @NTBBloodbath)
|
||||||
- [x] [java](https://github.com/tree-sitter/tree-sitter-java) (maintained by @p00f)
|
- [x] [java](https://github.com/tree-sitter/tree-sitter-java) (maintained by @p00f)
|
||||||
- [x] [javascript](https://github.com/tree-sitter/tree-sitter-javascript) (maintained by @steelsojka)
|
- [x] [javascript](https://github.com/tree-sitter/tree-sitter-javascript) (maintained by @steelsojka)
|
||||||
|
|
|
||||||
|
|
@ -179,6 +179,9 @@
|
||||||
"html": {
|
"html": {
|
||||||
"revision": "29f53d8f4f2335e61bf6418ab8958dac3282077a"
|
"revision": "29f53d8f4f2335e61bf6418ab8958dac3282077a"
|
||||||
},
|
},
|
||||||
|
"htmldjango": {
|
||||||
|
"revision": "b2dba02eddab66be669022320273d0dfe1ff923d"
|
||||||
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"revision": "2c6c44574031263326cb1e51658bbc0c084326e7"
|
"revision": "2c6c44574031263326cb1e51658bbc0c084326e7"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1416,6 +1416,16 @@ list.ebnf = {
|
||||||
experimental = true,
|
experimental = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.htmldjango = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/interdependence/tree-sitter-htmldjango",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
branch = "main",
|
||||||
|
},
|
||||||
|
maintainers = { "@ObserverOfTime" },
|
||||||
|
experimental = true,
|
||||||
|
}
|
||||||
|
|
||||||
list.ini = {
|
list.ini = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/justinmk/tree-sitter-ini",
|
url = "https://github.com/justinmk/tree-sitter-ini",
|
||||||
|
|
|
||||||
4
queries/htmldjango/folds.scm
Normal file
4
queries/htmldjango/folds.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[
|
||||||
|
(paired_statement)
|
||||||
|
(paired_comment)
|
||||||
|
] @fold
|
||||||
35
queries/htmldjango/highlights.scm
Normal file
35
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
queries/htmldjango/indents.scm
Normal file
3
queries/htmldjango/indents.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(paired_statement) @indent
|
||||||
|
(end_paired_statement) @indent_end
|
||||||
|
(branch_statement) @branch
|
||||||
1
queries/htmldjango/injections.scm
Normal file
1
queries/htmldjango/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
(content) @html @combined
|
||||||
Loading…
Add table
Add a link
Reference in a new issue