@willbooster/tree-sitter-c-sharp 6.0.5 → 7.0.0

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
@@ -287,6 +287,7 @@ module.exports = grammar({
287
287
  sym('_block_end'),
288
288
  sym('_ampersand_operator'),
289
289
  sym('_interpolation_format_colon'),
290
+ sym('_pragma_text'),
290
291
  ],
291
292
 
292
293
  extras: ($) => [
@@ -2449,9 +2450,12 @@ module.exports = grammar({
2449
2450
  preproc_pragma: ($) =>
2450
2451
  seq(
2451
2452
  preprocessor('pragma'),
2452
- choice(
2453
- seq('warning', choice('disable', 'restore'), commaSep(choice($.identifier, $.integer_literal))),
2454
- seq('checksum', alias($._preproc_filename, $.string_literal), $.string_literal, $.string_literal)
2453
+ optional(
2454
+ choice(
2455
+ seq('warning', choice('disable', 'restore'), commaSep(choice($.identifier, $.integer_literal))),
2456
+ seq('checksum', alias($._preproc_filename, $.string_literal), $.string_literal, $.string_literal),
2457
+ alias(sym('_pragma_text'), $.preproc_arg)
2458
+ )
2455
2459
  ),
2456
2460
  directiveEnd()
2457
2461
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c-sharp",
3
- "version": "6.0.5",
3
+ "version": "7.0.0",
4
4
  "description": "C# grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -6473,6 +6473,10 @@
6473
6473
  "type": "integer_literal",
6474
6474
  "named": true
6475
6475
  },
6476
+ {
6477
+ "type": "preproc_arg",
6478
+ "named": true
6479
+ },
6476
6480
  {
6477
6481
  "type": "string_literal",
6478
6482
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -29,7 +29,7 @@
29
29
  }
30
30
  ],
31
31
  "metadata": {
32
- "version": "6.0.5",
32
+ "version": "7.0.0",
33
33
  "license": "MIT",
34
34
  "description": "C# grammar for tree-sitter",
35
35
  "authors": [