@willbooster/tree-sitter-cpp 35.0.0 → 36.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/README.md +2 -2
- package/package.json +2 -2
- package/src/node-types.json +46 -0
- package/tree-sitter-cpp.wasm +0 -0
- package/tree-sitter.json +2 -1
package/README.md
CHANGED
|
@@ -155,8 +155,8 @@ and the release build regenerate the parsers before compiling them.
|
|
|
155
155
|
- a check (`test/unit/grammarPackage.test.ts`) that `tree-sitter.json` is published in the npm package and the crate,
|
|
156
156
|
that the scanner headers are published in the crate, and that the vendored scanner headers match the installed
|
|
157
157
|
@willbooster/tree-sitter-c. After updating that dependency, run `script/copy-c-scanner`.
|
|
158
|
-
|
|
159
|
-
refer to the C repository. `src/cppTrivia.h` and `src/initializerConditional.h` are maintained here.
|
|
158
|
+
`script/copy-c-scanner` copies every header under the package's `src/`, which are verbatim copies; their generator
|
|
159
|
+
paths refer to the C repository. `src/cppTrivia.h` and `src/initializerConditional.h` are maintained here.
|
|
160
160
|
Review the C scanner dispatch and external-token order against `src/scanner.c` when updating the dependency;
|
|
161
161
|
- a check (`test/unit/runtimeVersion.test.ts`) that `@willbooster/web-tree-sitter` in `package.json` and
|
|
162
162
|
`willbooster-tree-sitter` in `Cargo.lock` are the same version, since the Wasm tests run on the former and the Rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-cpp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.1",
|
|
4
4
|
"description": "C++ grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cpp",
|
|
@@ -46,7 +46,7 @@
|
|
|
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": "40.0.
|
|
49
|
+
"@willbooster/tree-sitter-c": "40.0.4",
|
|
50
50
|
"@willbooster/wb": "23.5.0",
|
|
51
51
|
"@willbooster/web-tree-sitter": "23.0.2",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
package/src/node-types.json
CHANGED
|
@@ -3036,6 +3036,32 @@
|
|
|
3036
3036
|
]
|
|
3037
3037
|
}
|
|
3038
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
|
+
},
|
|
3039
3065
|
{
|
|
3040
3066
|
"type": "enum_specifier",
|
|
3041
3067
|
"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
|
package/tree-sitter-cpp.wasm
CHANGED
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"src/macroProof.h",
|
|
24
24
|
"src/conditionalMacro.h",
|
|
25
25
|
"src/emptyDirectives.h",
|
|
26
|
+
"src/directiveScan.h",
|
|
26
27
|
"src/gnuRawString.h",
|
|
27
28
|
"src/initializerConditional.h",
|
|
28
29
|
"src/cppTrivia.h"
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
],
|
|
32
33
|
"metadata": {
|
|
33
|
-
"version": "
|
|
34
|
+
"version": "36.0.1",
|
|
34
35
|
"license": "MIT",
|
|
35
36
|
"description": "C++ grammar for tree-sitter",
|
|
36
37
|
"authors": [
|