@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 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.right(PREC.BITWISE, seq(
566
+ catch_expression: $ => prec.left(PREC.BITWISE, seq(
567
567
  $.expression,
568
568
  'catch',
569
569
  optional($.payload),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-zig",
3
- "version": "18.0.0",
3
+ "version": "19.0.0",
4
4
  "description": "Zig grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "parsing",
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "18.0.0",
16
+ "version": "19.0.0",
17
17
  "license": "MIT",
18
18
  "description": "Zig grammar for tree-sitter",
19
19
  "authors": [