@willbooster/tree-sitter-c-sharp 1.0.6 → 1.0.7
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/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1030,8 +1030,10 @@ module.exports = grammar({
|
|
|
1030
1030
|
// reparse can switch it without reporting a changed range.
|
|
1031
1031
|
type_pattern: ($) => prec.dynamic(-1, field('type', $.type)),
|
|
1032
1032
|
|
|
1033
|
+
// Left-associative so that a contextual keyword after `]` (`when` in a switch arm or section, `select` in a query)
|
|
1034
|
+
// ends the pattern instead of becoming its designation.
|
|
1033
1035
|
list_pattern: ($) =>
|
|
1034
|
-
prec.
|
|
1036
|
+
prec.left(
|
|
1035
1037
|
seq(
|
|
1036
1038
|
'[',
|
|
1037
1039
|
optional(seq(commaSep1(choice($.pattern, $.slice_pattern)), optional(','))),
|
package/package.json
CHANGED
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|