@willbooster/tree-sitter-cpp 34.0.1 → 35.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/README.md +1 -1
- package/package.json +7 -7
- package/src/node-types.json +58 -57
- package/tree-sitter-cpp.wasm +0 -0
- package/tree-sitter.json +4 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](https://crates.io/crates/willbooster-tree-sitter-cpp)
|
|
10
10
|
|
|
11
11
|
C++ grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-cpp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.0.0",
|
|
4
4
|
"description": "C++ grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cpp",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"verify-full": "bun wb verify --full"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@tsconfig/bun": "1.0.
|
|
45
|
+
"@tsconfig/bun": "1.0.12",
|
|
46
46
|
"@types/bun": "1.4.4",
|
|
47
47
|
"@vitest/browser-playwright": "5.1.0",
|
|
48
48
|
"@willbooster/oxlint-config": "1.4.9",
|
|
49
|
-
"@willbooster/tree-sitter-c": "
|
|
50
|
-
"@willbooster/wb": "23.
|
|
51
|
-
"@willbooster/web-tree-sitter": "23.0.
|
|
49
|
+
"@willbooster/tree-sitter-c": "40.0.3",
|
|
50
|
+
"@willbooster/wb": "23.5.0",
|
|
51
|
+
"@willbooster/web-tree-sitter": "23.0.2",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
53
53
|
"lefthook": "2.2.2",
|
|
54
54
|
"oxlint": "1.93.0",
|
|
55
|
-
"oxlint-tsgolint": "7.0.
|
|
56
|
-
"playwright": "1.65.
|
|
55
|
+
"oxlint-tsgolint": "7.0.2007",
|
|
56
|
+
"playwright": "1.65.1",
|
|
57
57
|
"semantic-release": "25.0.9",
|
|
58
58
|
"vite": "8.3.8",
|
|
59
59
|
"vitest": "5.1.0",
|
package/src/node-types.json
CHANGED
|
@@ -455,6 +455,14 @@
|
|
|
455
455
|
"type": "type_specifier",
|
|
456
456
|
"named": true,
|
|
457
457
|
"subtypes": [
|
|
458
|
+
{
|
|
459
|
+
"type": "atomic_type_specifier",
|
|
460
|
+
"named": true
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"type": "bit_int_specifier",
|
|
464
|
+
"named": true
|
|
465
|
+
},
|
|
458
466
|
{
|
|
459
467
|
"type": "class_specifier",
|
|
460
468
|
"named": true
|
|
@@ -843,10 +851,18 @@
|
|
|
843
851
|
"type": "initializer_list",
|
|
844
852
|
"named": true
|
|
845
853
|
},
|
|
854
|
+
{
|
|
855
|
+
"type": "initializer_pair",
|
|
856
|
+
"named": true
|
|
857
|
+
},
|
|
846
858
|
{
|
|
847
859
|
"type": "operator_argument",
|
|
848
860
|
"named": true
|
|
849
861
|
},
|
|
862
|
+
{
|
|
863
|
+
"type": "parameter_declaration",
|
|
864
|
+
"named": true
|
|
865
|
+
},
|
|
850
866
|
{
|
|
851
867
|
"type": "parameter_pack_expansion",
|
|
852
868
|
"named": true
|
|
@@ -2584,14 +2600,6 @@
|
|
|
2584
2600
|
"multiple": false,
|
|
2585
2601
|
"required": false,
|
|
2586
2602
|
"types": [
|
|
2587
|
-
{
|
|
2588
|
-
"type": "atomic_type_specifier",
|
|
2589
|
-
"named": true
|
|
2590
|
-
},
|
|
2591
|
-
{
|
|
2592
|
-
"type": "bit_int_specifier",
|
|
2593
|
-
"named": true
|
|
2594
|
-
},
|
|
2595
2603
|
{
|
|
2596
2604
|
"type": "type_specifier",
|
|
2597
2605
|
"named": true
|
|
@@ -3154,6 +3162,10 @@
|
|
|
3154
3162
|
"multiple": true,
|
|
3155
3163
|
"required": false,
|
|
3156
3164
|
"types": [
|
|
3165
|
+
{
|
|
3166
|
+
"type": "call_expression",
|
|
3167
|
+
"named": true
|
|
3168
|
+
},
|
|
3157
3169
|
{
|
|
3158
3170
|
"type": "enumerator",
|
|
3159
3171
|
"named": true
|
|
@@ -4495,6 +4507,10 @@
|
|
|
4495
4507
|
"multiple": false,
|
|
4496
4508
|
"required": true,
|
|
4497
4509
|
"types": [
|
|
4510
|
+
{
|
|
4511
|
+
"type": "raw_string_literal",
|
|
4512
|
+
"named": true
|
|
4513
|
+
},
|
|
4498
4514
|
{
|
|
4499
4515
|
"type": "string_literal",
|
|
4500
4516
|
"named": true
|
|
@@ -4547,6 +4563,10 @@
|
|
|
4547
4563
|
"multiple": false,
|
|
4548
4564
|
"required": true,
|
|
4549
4565
|
"types": [
|
|
4566
|
+
{
|
|
4567
|
+
"type": "raw_string_literal",
|
|
4568
|
+
"named": true
|
|
4569
|
+
},
|
|
4550
4570
|
{
|
|
4551
4571
|
"type": "string_literal",
|
|
4552
4572
|
"named": true
|
|
@@ -5865,47 +5885,7 @@
|
|
|
5865
5885
|
"named": true
|
|
5866
5886
|
},
|
|
5867
5887
|
{
|
|
5868
|
-
"type": "
|
|
5869
|
-
"named": true
|
|
5870
|
-
},
|
|
5871
|
-
{
|
|
5872
|
-
"type": "attributed_declarator",
|
|
5873
|
-
"named": true
|
|
5874
|
-
},
|
|
5875
|
-
{
|
|
5876
|
-
"type": "destructor_name",
|
|
5877
|
-
"named": true
|
|
5878
|
-
},
|
|
5879
|
-
{
|
|
5880
|
-
"type": "function_declarator",
|
|
5881
|
-
"named": true
|
|
5882
|
-
},
|
|
5883
|
-
{
|
|
5884
|
-
"type": "identifier",
|
|
5885
|
-
"named": true
|
|
5886
|
-
},
|
|
5887
|
-
{
|
|
5888
|
-
"type": "operator_name",
|
|
5889
|
-
"named": true
|
|
5890
|
-
},
|
|
5891
|
-
{
|
|
5892
|
-
"type": "parenthesized_declarator",
|
|
5893
|
-
"named": true
|
|
5894
|
-
},
|
|
5895
|
-
{
|
|
5896
|
-
"type": "pointer_declarator",
|
|
5897
|
-
"named": true
|
|
5898
|
-
},
|
|
5899
|
-
{
|
|
5900
|
-
"type": "reference_declarator",
|
|
5901
|
-
"named": true
|
|
5902
|
-
},
|
|
5903
|
-
{
|
|
5904
|
-
"type": "structured_binding_declarator",
|
|
5905
|
-
"named": true
|
|
5906
|
-
},
|
|
5907
|
-
{
|
|
5908
|
-
"type": "template_function",
|
|
5888
|
+
"type": "_declarator",
|
|
5909
5889
|
"named": true
|
|
5910
5890
|
}
|
|
5911
5891
|
]
|
|
@@ -5968,10 +5948,26 @@
|
|
|
5968
5948
|
"multiple": true,
|
|
5969
5949
|
"required": false,
|
|
5970
5950
|
"types": [
|
|
5951
|
+
{
|
|
5952
|
+
"type": "compound_statement",
|
|
5953
|
+
"named": true
|
|
5954
|
+
},
|
|
5971
5955
|
{
|
|
5972
5956
|
"type": "explicit_object_parameter_declaration",
|
|
5973
5957
|
"named": true
|
|
5974
5958
|
},
|
|
5959
|
+
{
|
|
5960
|
+
"type": "expression",
|
|
5961
|
+
"named": true
|
|
5962
|
+
},
|
|
5963
|
+
{
|
|
5964
|
+
"type": "initializer_list",
|
|
5965
|
+
"named": true
|
|
5966
|
+
},
|
|
5967
|
+
{
|
|
5968
|
+
"type": "initializer_pair",
|
|
5969
|
+
"named": true
|
|
5970
|
+
},
|
|
5975
5971
|
{
|
|
5976
5972
|
"type": "optional_parameter_declaration",
|
|
5977
5973
|
"named": true
|
|
@@ -5988,6 +5984,10 @@
|
|
|
5988
5984
|
"type": "preproc_ifdef",
|
|
5989
5985
|
"named": true
|
|
5990
5986
|
},
|
|
5987
|
+
{
|
|
5988
|
+
"type": "type_descriptor",
|
|
5989
|
+
"named": true
|
|
5990
|
+
},
|
|
5991
5991
|
{
|
|
5992
5992
|
"type": "variadic_parameter",
|
|
5993
5993
|
"named": true
|
|
@@ -9115,14 +9115,6 @@
|
|
|
9115
9115
|
"multiple": false,
|
|
9116
9116
|
"required": true,
|
|
9117
9117
|
"types": [
|
|
9118
|
-
{
|
|
9119
|
-
"type": "atomic_type_specifier",
|
|
9120
|
-
"named": true
|
|
9121
|
-
},
|
|
9122
|
-
{
|
|
9123
|
-
"type": "bit_int_specifier",
|
|
9124
|
-
"named": true
|
|
9125
|
-
},
|
|
9126
9118
|
{
|
|
9127
9119
|
"type": "type_specifier",
|
|
9128
9120
|
"named": true
|
|
@@ -9226,6 +9218,10 @@
|
|
|
9226
9218
|
"multiple": true,
|
|
9227
9219
|
"required": false,
|
|
9228
9220
|
"types": [
|
|
9221
|
+
{
|
|
9222
|
+
"type": "attribute_specifier",
|
|
9223
|
+
"named": true
|
|
9224
|
+
},
|
|
9229
9225
|
{
|
|
9230
9226
|
"type": "type_qualifier",
|
|
9231
9227
|
"named": true
|
|
@@ -10495,6 +10491,11 @@
|
|
|
10495
10491
|
"type": "preproc_directive",
|
|
10496
10492
|
"named": true
|
|
10497
10493
|
},
|
|
10494
|
+
{
|
|
10495
|
+
"type": "preproc_empty",
|
|
10496
|
+
"named": true,
|
|
10497
|
+
"extra": true
|
|
10498
|
+
},
|
|
10498
10499
|
{
|
|
10499
10500
|
"type": "private",
|
|
10500
10501
|
"named": false
|
package/tree-sitter-cpp.wasm
CHANGED
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -20,14 +20,17 @@
|
|
|
20
20
|
"src/identifier.h",
|
|
21
21
|
"src/keywords.h",
|
|
22
22
|
"src/functionMacro.h",
|
|
23
|
+
"src/macroProof.h",
|
|
23
24
|
"src/conditionalMacro.h",
|
|
25
|
+
"src/emptyDirectives.h",
|
|
26
|
+
"src/gnuRawString.h",
|
|
24
27
|
"src/initializerConditional.h",
|
|
25
28
|
"src/cppTrivia.h"
|
|
26
29
|
]
|
|
27
30
|
}
|
|
28
31
|
],
|
|
29
32
|
"metadata": {
|
|
30
|
-
"version": "
|
|
33
|
+
"version": "35.0.0",
|
|
31
34
|
"license": "MIT",
|
|
32
35
|
"description": "C++ grammar for tree-sitter",
|
|
33
36
|
"authors": [
|