mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
feat(ziggy): add ziggy parser and queries
[Ziggy](https://github.com/kristoff-it/ziggy) is a data serialization format used in the zine static site generator.
This commit is contained in:
parent
d1e1f17cea
commit
1a6fa428b8
4 changed files with 63 additions and 0 deletions
|
|
@ -889,5 +889,8 @@
|
||||||
},
|
},
|
||||||
"zig": {
|
"zig": {
|
||||||
"revision": "eb7d58c2dc4fbeea4745019dee8df013034ae66b"
|
"revision": "eb7d58c2dc4fbeea4745019dee8df013034ae66b"
|
||||||
|
},
|
||||||
|
"ziggy": {
|
||||||
|
"revision": "c66f47bc632c66668d61fa06eda112b41d6e5130"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2564,6 +2564,15 @@ list.zig = {
|
||||||
maintainers = { "@amaanq" },
|
maintainers = { "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.ziggy = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/kristoff-it/ziggy",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
location = "tree-sitter-ziggy",
|
||||||
|
},
|
||||||
|
maintainers = { "@rockorager" },
|
||||||
|
}
|
||||||
|
|
||||||
list.templ = {
|
list.templ = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/vrischmann/tree-sitter-templ",
|
url = "https://github.com/vrischmann/tree-sitter-templ",
|
||||||
|
|
|
||||||
41
queries/ziggy/highlights.scm
Normal file
41
queries/ziggy/highlights.scm
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
[
|
||||||
|
(true)
|
||||||
|
(false)
|
||||||
|
] @constant.builtin
|
||||||
|
|
||||||
|
(null) @constant.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
(integer)
|
||||||
|
(float)
|
||||||
|
] @number
|
||||||
|
|
||||||
|
(struct_field
|
||||||
|
key: (_) @keyword)
|
||||||
|
|
||||||
|
(struct
|
||||||
|
name: (_) @type)
|
||||||
|
|
||||||
|
(tag) @function
|
||||||
|
|
||||||
|
[
|
||||||
|
(string)
|
||||||
|
(line_string)*
|
||||||
|
] @string
|
||||||
|
|
||||||
|
(comment) @comment
|
||||||
|
|
||||||
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
"," @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(top_comment) @comment
|
||||||
10
queries/ziggy/indents.scm
Normal file
10
queries/ziggy/indents.scm
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
[
|
||||||
|
(struct)
|
||||||
|
(map)
|
||||||
|
(array)
|
||||||
|
] @indent.begin
|
||||||
|
|
||||||
|
[
|
||||||
|
"]"
|
||||||
|
"}"
|
||||||
|
] @indent.end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue