mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
feat: add pymanifest parser
This commit is contained in:
parent
5b3dd8cff1
commit
4e35ae6f71
5 changed files with 37 additions and 0 deletions
|
|
@ -311,6 +311,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [prql](https://github.com/PRQL/tree-sitter-prql) (maintained by @matthias-Q)
|
- [x] [prql](https://github.com/PRQL/tree-sitter-prql) (maintained by @matthias-Q)
|
||||||
- [x] [pug](https://github.com/zealot128/tree-sitter-pug) (experimental, maintained by @zealot128)
|
- [x] [pug](https://github.com/zealot128/tree-sitter-pug) (experimental, maintained by @zealot128)
|
||||||
- [x] [puppet](https://github.com/amaanq/tree-sitter-puppet) (maintained by @amaanq)
|
- [x] [puppet](https://github.com/amaanq/tree-sitter-puppet) (maintained by @amaanq)
|
||||||
|
- [x] [PyPA manifest](https://github.com/ObserverOfTime/tree-sitter-pymanifest) (maintained by @ObserverOfTime)
|
||||||
- [x] [python](https://github.com/tree-sitter/tree-sitter-python) (maintained by @stsewd, @theHamsta)
|
- [x] [python](https://github.com/tree-sitter/tree-sitter-python) (maintained by @stsewd, @theHamsta)
|
||||||
- [x] [ql](https://github.com/tree-sitter/tree-sitter-ql) (maintained by @pwntester)
|
- [x] [ql](https://github.com/tree-sitter/tree-sitter-ql) (maintained by @pwntester)
|
||||||
- [x] [qmldir](https://github.com/Decodetalkers/tree-sitter-qmldir) (maintained by @amaanq)
|
- [x] [qmldir](https://github.com/Decodetalkers/tree-sitter-qmldir) (maintained by @amaanq)
|
||||||
|
|
|
||||||
|
|
@ -413,6 +413,9 @@
|
||||||
"puppet": {
|
"puppet": {
|
||||||
"revision": "9ce9a5f7d64528572aaa8d59459ba869e634086b"
|
"revision": "9ce9a5f7d64528572aaa8d59459ba869e634086b"
|
||||||
},
|
},
|
||||||
|
"pymanifest": {
|
||||||
|
"revision": "8953f91d733dd92c1ac43b3d58a7a2f43fa62dae"
|
||||||
|
},
|
||||||
"python": {
|
"python": {
|
||||||
"revision": "5af00f64af6bbf822f208243cce5cf75396fb6f5"
|
"revision": "5af00f64af6bbf822f208243cce5cf75396fb6f5"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1241,6 +1241,15 @@ list.puppet = {
|
||||||
maintainers = { "@amaanq" },
|
maintainers = { "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.pymanifest = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/ObserverOfTime/tree-sitter-pymanifest",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@ObserverOfTime" },
|
||||||
|
readme_name = "PyPA manifest",
|
||||||
|
}
|
||||||
|
|
||||||
list.python = {
|
list.python = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/tree-sitter/tree-sitter-python",
|
url = "https://github.com/tree-sitter/tree-sitter-python",
|
||||||
|
|
|
||||||
22
queries/pymanifest/highlights.scm
Normal file
22
queries/pymanifest/highlights.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
(keyword) @keyword
|
||||||
|
|
||||||
|
(dir_sep) @punctuation.delimiter
|
||||||
|
|
||||||
|
(glob) @punctuation.special
|
||||||
|
|
||||||
|
(linebreak) @character.special
|
||||||
|
|
||||||
|
(char_sequence) @string.special
|
||||||
|
|
||||||
|
(char_sequence
|
||||||
|
[ "[" "]" ] @punctuation.bracket)
|
||||||
|
|
||||||
|
(char_sequence "!" @operator)
|
||||||
|
|
||||||
|
(char_range "-" @operator)
|
||||||
|
|
||||||
|
(escaped_char) @string.escape
|
||||||
|
|
||||||
|
(ERROR) @error
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
2
queries/pymanifest/injections.scm
Normal file
2
queries/pymanifest/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