feat: add pymanifest parser

This commit is contained in:
ObserverOfTime 2023-08-10 11:35:27 +03:00
parent 5b3dd8cff1
commit 4e35ae6f71
5 changed files with 37 additions and 0 deletions

View file

@ -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] [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] [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] [ql](https://github.com/tree-sitter/tree-sitter-ql) (maintained by @pwntester)
- [x] [qmldir](https://github.com/Decodetalkers/tree-sitter-qmldir) (maintained by @amaanq)

View file

@ -413,6 +413,9 @@
"puppet": {
"revision": "9ce9a5f7d64528572aaa8d59459ba869e634086b"
},
"pymanifest": {
"revision": "8953f91d733dd92c1ac43b3d58a7a2f43fa62dae"
},
"python": {
"revision": "5af00f64af6bbf822f208243cce5cf75396fb6f5"
},

View file

@ -1241,6 +1241,15 @@ list.puppet = {
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 = {
install_info = {
url = "https://github.com/tree-sitter/tree-sitter-python",

View 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

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))