@willbooster/tree-sitter-cpp 34.0.1 → 36.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 +104 -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": "36.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
|
|
@@ -3028,6 +3036,32 @@
|
|
|
3028
3036
|
]
|
|
3029
3037
|
}
|
|
3030
3038
|
},
|
|
3039
|
+
{
|
|
3040
|
+
"type": "else_continuation",
|
|
3041
|
+
"named": true,
|
|
3042
|
+
"fields": {
|
|
3043
|
+
"condition": {
|
|
3044
|
+
"multiple": false,
|
|
3045
|
+
"required": false,
|
|
3046
|
+
"types": [
|
|
3047
|
+
{
|
|
3048
|
+
"type": "condition_clause",
|
|
3049
|
+
"named": true
|
|
3050
|
+
}
|
|
3051
|
+
]
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
"children": {
|
|
3055
|
+
"multiple": true,
|
|
3056
|
+
"required": false,
|
|
3057
|
+
"types": [
|
|
3058
|
+
{
|
|
3059
|
+
"type": "attribute_declaration",
|
|
3060
|
+
"named": true
|
|
3061
|
+
}
|
|
3062
|
+
]
|
|
3063
|
+
}
|
|
3064
|
+
},
|
|
3031
3065
|
{
|
|
3032
3066
|
"type": "enum_specifier",
|
|
3033
3067
|
"named": true,
|
|
@@ -3154,6 +3188,10 @@
|
|
|
3154
3188
|
"multiple": true,
|
|
3155
3189
|
"required": false,
|
|
3156
3190
|
"types": [
|
|
3191
|
+
{
|
|
3192
|
+
"type": "call_expression",
|
|
3193
|
+
"named": true
|
|
3194
|
+
},
|
|
3157
3195
|
{
|
|
3158
3196
|
"type": "enumerator",
|
|
3159
3197
|
"named": true
|
|
@@ -4495,6 +4533,10 @@
|
|
|
4495
4533
|
"multiple": false,
|
|
4496
4534
|
"required": true,
|
|
4497
4535
|
"types": [
|
|
4536
|
+
{
|
|
4537
|
+
"type": "raw_string_literal",
|
|
4538
|
+
"named": true
|
|
4539
|
+
},
|
|
4498
4540
|
{
|
|
4499
4541
|
"type": "string_literal",
|
|
4500
4542
|
"named": true
|
|
@@ -4547,6 +4589,10 @@
|
|
|
4547
4589
|
"multiple": false,
|
|
4548
4590
|
"required": true,
|
|
4549
4591
|
"types": [
|
|
4592
|
+
{
|
|
4593
|
+
"type": "raw_string_literal",
|
|
4594
|
+
"named": true
|
|
4595
|
+
},
|
|
4550
4596
|
{
|
|
4551
4597
|
"type": "string_literal",
|
|
4552
4598
|
"named": true
|
|
@@ -5865,47 +5911,7 @@
|
|
|
5865
5911
|
"named": true
|
|
5866
5912
|
},
|
|
5867
5913
|
{
|
|
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",
|
|
5914
|
+
"type": "_declarator",
|
|
5909
5915
|
"named": true
|
|
5910
5916
|
}
|
|
5911
5917
|
]
|
|
@@ -5968,10 +5974,26 @@
|
|
|
5968
5974
|
"multiple": true,
|
|
5969
5975
|
"required": false,
|
|
5970
5976
|
"types": [
|
|
5977
|
+
{
|
|
5978
|
+
"type": "compound_statement",
|
|
5979
|
+
"named": true
|
|
5980
|
+
},
|
|
5971
5981
|
{
|
|
5972
5982
|
"type": "explicit_object_parameter_declaration",
|
|
5973
5983
|
"named": true
|
|
5974
5984
|
},
|
|
5985
|
+
{
|
|
5986
|
+
"type": "expression",
|
|
5987
|
+
"named": true
|
|
5988
|
+
},
|
|
5989
|
+
{
|
|
5990
|
+
"type": "initializer_list",
|
|
5991
|
+
"named": true
|
|
5992
|
+
},
|
|
5993
|
+
{
|
|
5994
|
+
"type": "initializer_pair",
|
|
5995
|
+
"named": true
|
|
5996
|
+
},
|
|
5975
5997
|
{
|
|
5976
5998
|
"type": "optional_parameter_declaration",
|
|
5977
5999
|
"named": true
|
|
@@ -5988,6 +6010,10 @@
|
|
|
5988
6010
|
"type": "preproc_ifdef",
|
|
5989
6011
|
"named": true
|
|
5990
6012
|
},
|
|
6013
|
+
{
|
|
6014
|
+
"type": "type_descriptor",
|
|
6015
|
+
"named": true
|
|
6016
|
+
},
|
|
5991
6017
|
{
|
|
5992
6018
|
"type": "variadic_parameter",
|
|
5993
6019
|
"named": true
|
|
@@ -6428,6 +6454,10 @@
|
|
|
6428
6454
|
"type": "declaration",
|
|
6429
6455
|
"named": true
|
|
6430
6456
|
},
|
|
6457
|
+
{
|
|
6458
|
+
"type": "else_continuation",
|
|
6459
|
+
"named": true
|
|
6460
|
+
},
|
|
6431
6461
|
{
|
|
6432
6462
|
"type": "enumerator",
|
|
6433
6463
|
"named": true
|
|
@@ -6652,6 +6682,10 @@
|
|
|
6652
6682
|
"type": "declaration",
|
|
6653
6683
|
"named": true
|
|
6654
6684
|
},
|
|
6685
|
+
{
|
|
6686
|
+
"type": "else_continuation",
|
|
6687
|
+
"named": true
|
|
6688
|
+
},
|
|
6655
6689
|
{
|
|
6656
6690
|
"type": "enumerator",
|
|
6657
6691
|
"named": true
|
|
@@ -6847,6 +6881,10 @@
|
|
|
6847
6881
|
"type": "declaration",
|
|
6848
6882
|
"named": true
|
|
6849
6883
|
},
|
|
6884
|
+
{
|
|
6885
|
+
"type": "else_continuation",
|
|
6886
|
+
"named": true
|
|
6887
|
+
},
|
|
6850
6888
|
{
|
|
6851
6889
|
"type": "enumerator",
|
|
6852
6890
|
"named": true
|
|
@@ -7149,6 +7187,10 @@
|
|
|
7149
7187
|
"type": "declaration",
|
|
7150
7188
|
"named": true
|
|
7151
7189
|
},
|
|
7190
|
+
{
|
|
7191
|
+
"type": "else_continuation",
|
|
7192
|
+
"named": true
|
|
7193
|
+
},
|
|
7152
7194
|
{
|
|
7153
7195
|
"type": "enumerator",
|
|
7154
7196
|
"named": true
|
|
@@ -7373,6 +7415,10 @@
|
|
|
7373
7415
|
"type": "declaration",
|
|
7374
7416
|
"named": true
|
|
7375
7417
|
},
|
|
7418
|
+
{
|
|
7419
|
+
"type": "else_continuation",
|
|
7420
|
+
"named": true
|
|
7421
|
+
},
|
|
7376
7422
|
{
|
|
7377
7423
|
"type": "enumerator",
|
|
7378
7424
|
"named": true
|
|
@@ -9115,14 +9161,6 @@
|
|
|
9115
9161
|
"multiple": false,
|
|
9116
9162
|
"required": true,
|
|
9117
9163
|
"types": [
|
|
9118
|
-
{
|
|
9119
|
-
"type": "atomic_type_specifier",
|
|
9120
|
-
"named": true
|
|
9121
|
-
},
|
|
9122
|
-
{
|
|
9123
|
-
"type": "bit_int_specifier",
|
|
9124
|
-
"named": true
|
|
9125
|
-
},
|
|
9126
9164
|
{
|
|
9127
9165
|
"type": "type_specifier",
|
|
9128
9166
|
"named": true
|
|
@@ -9226,6 +9264,10 @@
|
|
|
9226
9264
|
"multiple": true,
|
|
9227
9265
|
"required": false,
|
|
9228
9266
|
"types": [
|
|
9267
|
+
{
|
|
9268
|
+
"type": "attribute_specifier",
|
|
9269
|
+
"named": true
|
|
9270
|
+
},
|
|
9229
9271
|
{
|
|
9230
9272
|
"type": "type_qualifier",
|
|
9231
9273
|
"named": true
|
|
@@ -10495,6 +10537,11 @@
|
|
|
10495
10537
|
"type": "preproc_directive",
|
|
10496
10538
|
"named": true
|
|
10497
10539
|
},
|
|
10540
|
+
{
|
|
10541
|
+
"type": "preproc_empty",
|
|
10542
|
+
"named": true,
|
|
10543
|
+
"extra": true
|
|
10544
|
+
},
|
|
10498
10545
|
{
|
|
10499
10546
|
"type": "private",
|
|
10500
10547
|
"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": "36.0.0",
|
|
31
34
|
"license": "MIT",
|
|
32
35
|
"description": "C++ grammar for tree-sitter",
|
|
33
36
|
"authors": [
|