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:
Tim Culverhouse 2024-09-09 09:19:58 -05:00 committed by Christian Clason
parent d1e1f17cea
commit 1a6fa428b8
4 changed files with 63 additions and 0 deletions

View file

@ -889,5 +889,8 @@
},
"zig": {
"revision": "eb7d58c2dc4fbeea4745019dee8df013034ae66b"
},
"ziggy": {
"revision": "c66f47bc632c66668d61fa06eda112b41d6e5130"
}
}

View file

@ -2564,6 +2564,15 @@ list.zig = {
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 = {
install_info = {
url = "https://github.com/vrischmann/tree-sitter-templ",

View 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
View file

@ -0,0 +1,10 @@
[
(struct)
(map)
(array)
] @indent.begin
[
"]"
"}"
] @indent.end