@willbooster/tree-sitter-zig 18.0.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/grammar.js +1 -1
- package/package.json +1 -1
- package/tree-sitter-zig.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,8 @@ exceptions:
|
|
|
48
48
|
layout modifier, and opaque declarations have no backing type.
|
|
49
49
|
- Quoted identifiers such as `@"hello world"` expose their content directly inside `identifier`, without a nested
|
|
50
50
|
`string` node.
|
|
51
|
+
- `catch` groups to the left like `orelse`, so `a catch b catch c` and `a catch b orelse c` nest the leftmost
|
|
52
|
+
operation innermost.
|
|
51
53
|
- Boolean negation is a `unary_expression`. Inferred error unions (`!T`) occur only in function return types;
|
|
52
54
|
their payload includes suffixes such as calls and field access (`!List(T)` or `!ns.Result`). Explicit error
|
|
53
55
|
unions (`E!T`) retain their error and payload types.
|
package/grammar.js
CHANGED
|
@@ -563,7 +563,7 @@ module.exports = grammar({
|
|
|
563
563
|
|
|
564
564
|
try_expression: $ => prec.left(PREC.UNARY, seq('try', $.expression)),
|
|
565
565
|
|
|
566
|
-
catch_expression: $ => prec.
|
|
566
|
+
catch_expression: $ => prec.left(PREC.BITWISE, seq(
|
|
567
567
|
$.expression,
|
|
568
568
|
'catch',
|
|
569
569
|
optional($.payload),
|
package/package.json
CHANGED
package/tree-sitter-zig.wasm
CHANGED
|
Binary file
|