mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -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
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