mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
feat: add the zathurarc parser (#5948)
This commit is contained in:
parent
e0420e73c9
commit
94bd4bcc5b
5 changed files with 57 additions and 0 deletions
|
|
@ -421,6 +421,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
|
- [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
|
||||||
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)
|
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)
|
||||||
- [x] [yuck](https://github.com/Philipp-M/tree-sitter-yuck) (maintained by @Philipp-M, @amaanq)
|
- [x] [yuck](https://github.com/Philipp-M/tree-sitter-yuck) (maintained by @Philipp-M, @amaanq)
|
||||||
|
- [x] [zathurarc](https://github.com/Freed-Wu/tree-sitter-zathurarc) (maintained by @Freed-Wu)
|
||||||
- [x] [zig](https://github.com/maxxnino/tree-sitter-zig) (maintained by @maxxnino)
|
- [x] [zig](https://github.com/maxxnino/tree-sitter-zig) (maintained by @maxxnino)
|
||||||
<!--parserinfo-->
|
<!--parserinfo-->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -743,6 +743,9 @@
|
||||||
"yuck": {
|
"yuck": {
|
||||||
"revision": "c348825d3f86dec71dee0e1223c6bd73114e3579"
|
"revision": "c348825d3f86dec71dee0e1223c6bd73114e3579"
|
||||||
},
|
},
|
||||||
|
"zathurarc": {
|
||||||
|
"revision": "0086e9ee0bc306276964ae088957b77935b846fd"
|
||||||
|
},
|
||||||
"zig": {
|
"zig": {
|
||||||
"revision": "0d08703e4c3f426ec61695d7617415fff97029bd"
|
"revision": "0d08703e4c3f426ec61695d7617415fff97029bd"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2167,6 +2167,14 @@ list.yuck = {
|
||||||
maintainers = { "@Philipp-M", "@amaanq" },
|
maintainers = { "@Philipp-M", "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.zathurarc = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/Freed-Wu/tree-sitter-zathurarc",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@Freed-Wu" },
|
||||||
|
}
|
||||||
|
|
||||||
list.zig = {
|
list.zig = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/maxxnino/tree-sitter-zig",
|
url = "https://github.com/maxxnino/tree-sitter-zig",
|
||||||
|
|
|
||||||
36
queries/zathurarc/highlights.scm
Normal file
36
queries/zathurarc/highlights.scm
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
; General
|
||||||
|
(path) @string.special.path
|
||||||
|
|
||||||
|
(option) @variable.builtin
|
||||||
|
|
||||||
|
(command) @keyword
|
||||||
|
|
||||||
|
(include_directive
|
||||||
|
(command) @keyword.import)
|
||||||
|
|
||||||
|
(mode_name) @type.builtin
|
||||||
|
|
||||||
|
(key) @constant
|
||||||
|
|
||||||
|
(function) @function.call
|
||||||
|
|
||||||
|
(argument) @variable.parameter
|
||||||
|
|
||||||
|
; Comments
|
||||||
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
; Literals
|
||||||
|
(int) @number
|
||||||
|
|
||||||
|
(float) @number.float
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
|
||||||
|
(bool) @boolean
|
||||||
|
|
||||||
|
[
|
||||||
|
"<"
|
||||||
|
">"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
] @punctuation.bracket
|
||||||
9
queries/zathurarc/injections.scm
Normal file
9
queries/zathurarc/injections.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
(set_directive
|
||||||
|
(option) @_option
|
||||||
|
(string) @injection.content
|
||||||
|
(#eq? @_option "synctex-editor-command")
|
||||||
|
(#offset! @injection.content 0 1 0 -1)
|
||||||
|
(#set! injection.language "bash"))
|
||||||
|
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue