@willbooster/tree-sitter-c 37.0.0 → 38.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/grammar.js CHANGED
@@ -2127,7 +2127,7 @@ module.exports = Object.assign(
2127
2127
  update_expression: ($) => {
2128
2128
  const argument = field('argument', $.expression);
2129
2129
  const operator = field('operator', choice('--', '++'));
2130
- return prec.right(PREC.UNARY, choice(seq(operator, argument), seq(argument, operator)));
2130
+ return choice(prec.right(PREC.UNARY, seq(operator, argument)), prec.left(PREC.CALL, seq(argument, operator)));
2131
2131
  },
2132
2132
 
2133
2133
  cast_expression: ($) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c",
3
- "version": "37.0.0",
3
+ "version": "38.0.0",
4
4
  "description": "C grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "c",
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "37.0.0",
27
+ "version": "38.0.0",
28
28
  "license": "MIT",
29
29
  "description": "C grammar for tree-sitter",
30
30
  "authors": [