@willbooster/tree-sitter-c-sharp 1.0.15 → 1.0.16
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 +7 -2
- package/package.json +1 -1
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -45,6 +45,7 @@ module.exports = grammar({
|
|
|
45
45
|
name: 'c_sharp',
|
|
46
46
|
|
|
47
47
|
conflicts: ($) => [
|
|
48
|
+
[$.modifier, $._constructor_declaration_initializer, $._reserved_identifier],
|
|
48
49
|
[$._simple_name, $.generic_name],
|
|
49
50
|
[$._simple_name, $.type_parameter],
|
|
50
51
|
[$._simple_name, $.subpattern],
|
|
@@ -267,7 +268,7 @@ module.exports = grammar({
|
|
|
267
268
|
seq(
|
|
268
269
|
repeat($._attribute_list),
|
|
269
270
|
repeat($.modifier),
|
|
270
|
-
optional('ref'),
|
|
271
|
+
optional(seq('ref', optional(alias('partial', $.modifier)))),
|
|
271
272
|
'struct',
|
|
272
273
|
field('name', $.identifier),
|
|
273
274
|
repeat(choice($.type_parameter_list, $.parameter_list, $.base_list)),
|
|
@@ -536,7 +537,10 @@ module.exports = grammar({
|
|
|
536
537
|
_constructor_declaration_initializer: ($) =>
|
|
537
538
|
seq(
|
|
538
539
|
repeat($._attribute_list),
|
|
539
|
-
|
|
540
|
+
choice(
|
|
541
|
+
repeat($.modifier),
|
|
542
|
+
prec.dynamic(1, seq(repeat($.modifier), alias('partial', $.modifier), repeat($.modifier)))
|
|
543
|
+
),
|
|
540
544
|
field('name', $.identifier),
|
|
541
545
|
field('parameters', $.parameter_list),
|
|
542
546
|
optional($.constructor_initializer)
|
|
@@ -1705,6 +1709,7 @@ module.exports = grammar({
|
|
|
1705
1709
|
'on',
|
|
1706
1710
|
'orderby',
|
|
1707
1711
|
'param',
|
|
1712
|
+
'partial',
|
|
1708
1713
|
'property',
|
|
1709
1714
|
'scoped',
|
|
1710
1715
|
'select',
|
package/package.json
CHANGED
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|