@willbooster/tree-sitter-c-sharp 6.0.5 → 6.0.6
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 -3
- package/package.json +1 -1
- package/src/node-types.json +4 -0
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
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
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
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
package/src/node-types.json
CHANGED
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|