zig: Fix syntax and file types (#11409)

vali-pnt created

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

Change summary

extensions/zig/languages/zig/config.toml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Detailed changes

extensions/zig/languages/zig/config.toml 🔗

@@ -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"] },
 ]