diff options
| author | David Czihak <git@dcz.at> | 2026-05-07 14:33:19 +0200 |
|---|---|---|
| committer | David Czihak <git@dcz.at> | 2026-05-07 14:33:19 +0200 |
| commit | ddf2de739068b5ff0866ccb1d067f3cb53a4fc55 (patch) | |
| tree | 1a77efe9d73a6172be3c37d29b321eadd4efe379 /Syntaxes | |
Initial commitv0.1.7
Diffstat (limited to 'Syntaxes')
| -rw-r--r-- | Syntaxes/Zig.xml | 55 | ||||
| -rwxr-xr-x | Syntaxes/libtree-sitter-zig.dylib | bin | 0 -> 1495312 bytes |
2 files changed, 55 insertions, 0 deletions
diff --git a/Syntaxes/Zig.xml b/Syntaxes/Zig.xml new file mode 100644 index 0000000..40e8ec8 --- /dev/null +++ b/Syntaxes/Zig.xml | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | <syntax name="zig"> | ||
| 3 | <meta> | ||
| 4 | <name>Zig</name> | ||
| 5 | <type>compiled</type> | ||
| 6 | <preferred-file-extension>zig</preferred-file-extension> | ||
| 7 | </meta> | ||
| 8 | |||
| 9 | <detectors> | ||
| 10 | <extension priority="1.0">zig,zon</extension> | ||
| 11 | <filename priority="1.0">build.zig</filename> | ||
| 12 | <filename priority="1.0">build.zig.zon</filename> | ||
| 13 | </detectors> | ||
| 14 | |||
| 15 | <indentation> | ||
| 16 | <increase> | ||
| 17 | <expression>(\{[^}\"']*$)|(\[[^\]\"']*$)|(\([^)\"']*$)</expression> | ||
| 18 | </increase> | ||
| 19 | <decrease> | ||
| 20 | <expression>^\s*[\}\]\)]</expression> | ||
| 21 | </decrease> | ||
| 22 | </indentation> | ||
| 23 | |||
| 24 | <comments> | ||
| 25 | <single> | ||
| 26 | <expression>//</expression> | ||
| 27 | </single> | ||
| 28 | </comments> | ||
| 29 | |||
| 30 | <brackets> | ||
| 31 | <pair open="{" close="}" /> | ||
| 32 | <pair open="[" close="]" /> | ||
| 33 | <pair open="(" close=")" /> | ||
| 34 | <pair open="|" close="|" /> | ||
| 35 | </brackets> | ||
| 36 | |||
| 37 | <surrounding-pairs> | ||
| 38 | <pair open="{" close="}" /> | ||
| 39 | <pair open="[" close="]" /> | ||
| 40 | <pair open="(" close=")" /> | ||
| 41 | <pair open="'" close="'" /> | ||
| 42 | <pair open=""" close=""" /> | ||
| 43 | <pair open="|" close="|" /> | ||
| 44 | </surrounding-pairs> | ||
| 45 | |||
| 46 | <injection> | ||
| 47 | <expression>^(zig|zon)$</expression> | ||
| 48 | </injection> | ||
| 49 | |||
| 50 | <tree-sitter> | ||
| 51 | <highlights /> | ||
| 52 | <symbols /> | ||
| 53 | <folds /> | ||
| 54 | </tree-sitter> | ||
| 55 | </syntax> | ||
diff --git a/Syntaxes/libtree-sitter-zig.dylib b/Syntaxes/libtree-sitter-zig.dylib new file mode 100755 index 0000000..91de187 --- /dev/null +++ b/Syntaxes/libtree-sitter-zig.dylib | |||
| Binary files differ | |||
