mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-18 18:08:07 +03:00
zig: Fix syntax and file types (#11409)
Fixed autoclosing and made it recognize all ZON (Zig Object Notation) files. - Fixed single and double quotes not autoclosing for zig - Fixed ZON file recognition - Removed angle brackets autoclosing in zig as they are not used Release Notes: - N/A
This commit is contained in:
parent
0aab6d8bdc
commit
b25eb9afe2
@ -1,11 +1,12 @@
|
||||
name = "Zig"
|
||||
grammar = "zig"
|
||||
path_suffixes = ["zig", "zig.zon"]
|
||||
path_suffixes = ["zig", "zon"]
|
||||
line_comments = ["// "]
|
||||
autoclose_before = ";:.,=}])>"
|
||||
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 = true },
|
||||
{ start = "\"", end = "\"", close = true, newline = false, not_in = ["string"] },
|
||||
{ start = "'", end = "'", close = true, newline = false, not_in = ["string", "comment"] },
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user