mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
feat: add pymanifest parser
This commit is contained in:
parent
5b3dd8cff1
commit
4e35ae6f71
5 changed files with 37 additions and 0 deletions
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