@willbooster/tree-sitter-c-sharp 1.0.11 → 1.0.12
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 +3 -1
- package/package.json +1 -1
- package/src/node-types.json +4 -0
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1205,7 +1205,9 @@ module.exports = grammar({
|
|
|
1205
1205
|
|
|
1206
1206
|
assignment_expression: ($) =>
|
|
1207
1207
|
seq(
|
|
1208
|
-
|
|
1208
|
+
// An invocation can return a reference (`Unsafe.Add(ref x, i) = v`). It ends with `)`, so `=` after it adds few
|
|
1209
|
+
// parse states, unlike making any expression assignable.
|
|
1210
|
+
field('left', choice($.lvalue_expression, $.invocation_expression)),
|
|
1209
1211
|
field('operator', choice('=', '+=', '-=', '*=', '/=', '%=', '&=', '^=', '|=', '<<=', '>>=', '>>>=', '??=')),
|
|
1210
1212
|
field('right', $.expression)
|
|
1211
1213
|
),
|
package/package.json
CHANGED
package/src/node-types.json
CHANGED
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|