@willbooster/tree-sitter-c-sharp 5.0.0 → 5.0.1
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 +25 -5
- package/package.json +1 -1
- package/tree-sitter-c_sharp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1518,23 +1518,43 @@ module.exports = grammar({
|
|
|
1518
1518
|
choice(alias($.interpolation_string_content, $.string_content), $.escape_sequence, $.interpolation),
|
|
1519
1519
|
|
|
1520
1520
|
_interpolated_verbatim_string_content: ($) =>
|
|
1521
|
-
choice(
|
|
1521
|
+
choice(
|
|
1522
|
+
alias($.interpolation_string_content, $.string_content),
|
|
1523
|
+
alias($._multiline_interpolation, $.interpolation)
|
|
1524
|
+
),
|
|
1522
1525
|
|
|
1523
1526
|
_interpolated_raw_string_content: ($) =>
|
|
1524
|
-
choice(
|
|
1527
|
+
choice(
|
|
1528
|
+
alias($.interpolation_string_content, $.string_content),
|
|
1529
|
+
alias($._multiline_interpolation, $.interpolation)
|
|
1530
|
+
),
|
|
1525
1531
|
|
|
1526
1532
|
interpolation: ($) =>
|
|
1527
1533
|
seq(
|
|
1528
1534
|
alias($.interpolation_open_brace, $.interpolation_brace),
|
|
1529
1535
|
$.expression,
|
|
1530
1536
|
optional($.interpolation_alignment_clause),
|
|
1531
|
-
|
|
1532
|
-
|
|
1537
|
+
choice(
|
|
1538
|
+
alias($.interpolation_close_brace, $.interpolation_brace),
|
|
1539
|
+
seq($.interpolation_format_clause, alias(token.immediate('}'), $.interpolation_brace))
|
|
1540
|
+
)
|
|
1533
1541
|
),
|
|
1534
1542
|
|
|
1535
1543
|
interpolation_alignment_clause: ($) => seq(',', $.expression),
|
|
1536
1544
|
|
|
1537
|
-
interpolation_format_clause: ($) =>
|
|
1545
|
+
interpolation_format_clause: ($) =>
|
|
1546
|
+
seq(':', optional($._file_directive_literal_context), token.immediate(/[^}"\n\r\u0085\u2028\u2029]+/)),
|
|
1547
|
+
|
|
1548
|
+
_multiline_interpolation: ($) =>
|
|
1549
|
+
seq(
|
|
1550
|
+
alias($.interpolation_open_brace, $.interpolation_brace),
|
|
1551
|
+
$.expression,
|
|
1552
|
+
optional($.interpolation_alignment_clause),
|
|
1553
|
+
optional(alias($._multiline_interpolation_format_clause, $.interpolation_format_clause)),
|
|
1554
|
+
alias($.interpolation_close_brace, $.interpolation_brace)
|
|
1555
|
+
),
|
|
1556
|
+
|
|
1557
|
+
_multiline_interpolation_format_clause: ($) => seq(':', optional($._file_directive_literal_context), /[^}"]+/),
|
|
1538
1558
|
|
|
1539
1559
|
member_access_expression: ($) =>
|
|
1540
1560
|
prec(
|
package/package.json
CHANGED
package/tree-sitter-c_sharp.wasm
CHANGED
|
Binary file
|