@willbooster/tree-sitter-c-sharp 6.0.1 → 6.0.3

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test-rust.yml)
7
7
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
8
- [![wbfy](https://img.shields.io/badge/wbfy-20.36.11-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.41.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-c-sharp.svg)](https://crates.io/crates/willbooster-tree-sitter-c-sharp)
10
10
 
11
11
  C# grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
package/grammar.js CHANGED
@@ -286,6 +286,7 @@ module.exports = grammar({
286
286
  sym('_statement_end'),
287
287
  sym('_block_end'),
288
288
  sym('_ampersand_operator'),
289
+ sym('_interpolation_format_colon'),
289
290
  ],
290
291
 
291
292
  extras: ($) => [
@@ -2047,7 +2048,11 @@ module.exports = grammar({
2047
2048
  interpolation_format_clause: () =>
2048
2049
  prec.dynamic(
2049
2050
  1,
2050
- seq(':', optional(sym('_file_directive_literal_context')), token.immediate(/[^}"\n\r\u0085\u2028\u2029]+/))
2051
+ seq(
2052
+ choice(alias(sym('_interpolation_format_colon'), ':'), ':'),
2053
+ optional(sym('_file_directive_literal_context')),
2054
+ token.immediate(/[^}"\n\r\u0085\u2028\u2029]+/)
2055
+ )
2051
2056
  ),
2052
2057
 
2053
2058
  _multiline_interpolation: ($) =>
@@ -2060,7 +2065,14 @@ module.exports = grammar({
2060
2065
  ),
2061
2066
 
2062
2067
  _multiline_interpolation_format_clause: () =>
2063
- prec.dynamic(1, seq(':', optional(sym('_file_directive_literal_context')), /[^}"]+/)),
2068
+ prec.dynamic(
2069
+ 1,
2070
+ seq(
2071
+ choice(alias(sym('_interpolation_format_colon'), ':'), ':'),
2072
+ optional(sym('_file_directive_literal_context')),
2073
+ /[^}"]+/
2074
+ )
2075
+ ),
2064
2076
 
2065
2077
  member_access_expression: ($) => memberAccessExpression($, choice($._postfix_receiver, $.predefined_type, $._name)),
2066
2078
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c-sharp",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "C# grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -48,7 +48,7 @@
48
48
  "@willbooster/oxfmt-config": "1.2.2",
49
49
  "@willbooster/oxlint-config": "1.4.8",
50
50
  "@willbooster/wb": "22.26.1",
51
- "@willbooster/web-tree-sitter": "2.0.24",
51
+ "@willbooster/web-tree-sitter": "2.0.27",
52
52
  "conventional-changelog-conventionalcommits": "10.4.1",
53
53
  "lefthook": "2.2.1",
54
54
  "oxfmt": "0.72.0",
@@ -57,7 +57,6 @@
57
57
  "playwright": "1.64.0",
58
58
  "semantic-release": "25.0.9",
59
59
  "sort-package-json": "4.0.0",
60
- "typescript": "7.0.2",
61
60
  "vite": "8.3.4",
62
61
  "vitest": "5.0.3",
63
62
  "wrangler": "4.149.0"
Binary file
package/tree-sitter.json CHANGED
@@ -29,7 +29,7 @@
29
29
  }
30
30
  ],
31
31
  "metadata": {
32
- "version": "6.0.1",
32
+ "version": "6.0.3",
33
33
  "license": "MIT",
34
34
  "description": "C# grammar for tree-sitter",
35
35
  "authors": [