Closes #20001 the old outline was *weird* for many reasons so ill just show it with a hodgepodge of zig declarations before:  after:  why were values shown? why werent `var`s or modifiers like pub, const, export? it was very odd to me and inconsistent with other languages. i chose to leave out unnamed tests, it just seemed like noise to me since they werent distinct but i can easily revert that unfortunately there seems to be a bug upstream which causes those `t`/`f` decls to show 2 things https://github.com/tree-sitter-grammars/tree-sitter-zig/issues/3 im very new to treesitter and queries so i really havent looked over the rest of the stuff here, other than outline theyre unmodified please lmk if theres anything wrong Release Notes: - Changed upstream treesitter grammar for zig
13 lines
512 B
TOML
13 lines
512 B
TOML
name = "Zig"
|
|
grammar = "zig"
|
|
path_suffixes = ["zig", "zon"]
|
|
line_comments = ["// ", "/// ", "//! "]
|
|
autoclose_before = ";:.,=}])"
|
|
brackets = [
|
|
{ start = "{", end = "}", close = true, newline = true },
|
|
{ start = "[", end = "]", close = true, newline = true },
|
|
{ start = "(", end = ")", close = true, newline = true },
|
|
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
|
{ start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
|
|
]
|