@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 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.right(
1036
+ prec.left(
1035
1037
  seq(
1036
1038
  '[',
1037
1039
  optional(seq(commaSep1(choice($.pattern, $.slice_pattern)), optional(','))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c-sharp",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "C# grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "1.0.6",
22
+ "version": "1.0.7",
23
23
  "license": "MIT",
24
24
  "description": "C# grammar for tree-sitter",
25
25
  "authors": [