@willbooster/tree-sitter-c 14.0.0 → 14.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 +31 -5
- package/package.json +1 -1
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -482,7 +482,13 @@ module.exports = Object.assign(
|
|
|
482
482
|
repeat($.attribute_declaration),
|
|
483
483
|
repeat($.ms_pointer_modifier),
|
|
484
484
|
repeat(
|
|
485
|
-
choice(
|
|
485
|
+
choice(
|
|
486
|
+
$.type_qualifier,
|
|
487
|
+
$.attribute_specifier,
|
|
488
|
+
prec(-1, $.ms_call_modifier),
|
|
489
|
+
$.macro_specifier,
|
|
490
|
+
$._conditional_macro_specifier
|
|
491
|
+
)
|
|
486
492
|
),
|
|
487
493
|
field('declarator', alias($._old_style_declarator, $._declarator))
|
|
488
494
|
)
|
|
@@ -730,7 +736,13 @@ module.exports = Object.assign(
|
|
|
730
736
|
repeat($.attribute_declaration),
|
|
731
737
|
repeat($.ms_pointer_modifier),
|
|
732
738
|
repeat(
|
|
733
|
-
choice(
|
|
739
|
+
choice(
|
|
740
|
+
$.type_qualifier,
|
|
741
|
+
$.attribute_specifier,
|
|
742
|
+
prec(-1, $.ms_call_modifier),
|
|
743
|
+
$.macro_specifier,
|
|
744
|
+
$._conditional_macro_specifier
|
|
745
|
+
)
|
|
734
746
|
),
|
|
735
747
|
field('declarator', $._field_declarator)
|
|
736
748
|
)
|
|
@@ -747,7 +759,13 @@ module.exports = Object.assign(
|
|
|
747
759
|
repeat($.attribute_declaration),
|
|
748
760
|
repeat($.ms_pointer_modifier),
|
|
749
761
|
repeat(
|
|
750
|
-
choice(
|
|
762
|
+
choice(
|
|
763
|
+
$.type_qualifier,
|
|
764
|
+
$.attribute_specifier,
|
|
765
|
+
prec(-1, $.ms_call_modifier),
|
|
766
|
+
$.macro_specifier,
|
|
767
|
+
$._conditional_macro_specifier
|
|
768
|
+
)
|
|
751
769
|
),
|
|
752
770
|
field('declarator', $._type_declarator)
|
|
753
771
|
)
|
|
@@ -762,7 +780,7 @@ module.exports = Object.assign(
|
|
|
762
780
|
'*',
|
|
763
781
|
repeat($.attribute_declaration),
|
|
764
782
|
repeat($.ms_pointer_modifier),
|
|
765
|
-
repeat(choice($.type_qualifier, $.attribute_specifier)),
|
|
783
|
+
repeat(choice($.type_qualifier, $.attribute_specifier, prec(-1, $.ms_call_modifier))),
|
|
766
784
|
field('declarator', optional($._abstract_declarator))
|
|
767
785
|
)
|
|
768
786
|
)
|
|
@@ -1786,7 +1804,15 @@ function pointerDeclaratorRule($, declarator) {
|
|
|
1786
1804
|
'*',
|
|
1787
1805
|
repeat($.attribute_declaration),
|
|
1788
1806
|
repeat($.ms_pointer_modifier),
|
|
1789
|
-
repeat(
|
|
1807
|
+
repeat(
|
|
1808
|
+
choice(
|
|
1809
|
+
$.type_qualifier,
|
|
1810
|
+
$.attribute_specifier,
|
|
1811
|
+
prec(-1, $.ms_call_modifier),
|
|
1812
|
+
$.macro_specifier,
|
|
1813
|
+
$._conditional_macro_specifier
|
|
1814
|
+
)
|
|
1815
|
+
),
|
|
1790
1816
|
field('declarator', declarator)
|
|
1791
1817
|
)
|
|
1792
1818
|
);
|
package/package.json
CHANGED
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|