@willbooster/tree-sitter-cpp 1.0.2 → 1.1.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/package.json +2 -2
- package/src/node-types.json +81 -3
- package/tree-sitter-cpp.wasm +0 -0
- package/tree-sitter.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-cpp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "C++ grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@vitest/browser-playwright": "5.0.1",
|
|
45
45
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
46
46
|
"@willbooster/oxlint-config": "1.4.8",
|
|
47
|
+
"@willbooster/tree-sitter-c": "1.1.0",
|
|
47
48
|
"@willbooster/wb": "22.11.5",
|
|
48
49
|
"@willbooster/web-tree-sitter": "1.0.0",
|
|
49
50
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
@@ -54,7 +55,6 @@
|
|
|
54
55
|
"playwright": "1.63.0",
|
|
55
56
|
"semantic-release": "25.0.9",
|
|
56
57
|
"sort-package-json": "4.0.0",
|
|
57
|
-
"tree-sitter-c": "0.24.1",
|
|
58
58
|
"tree-sitter-cli": "0.27.0",
|
|
59
59
|
"typescript": "7.0.2",
|
|
60
60
|
"vite": "8.3.0",
|
package/src/node-types.json
CHANGED
|
@@ -179,6 +179,10 @@
|
|
|
179
179
|
"type": "binary_expression",
|
|
180
180
|
"named": true
|
|
181
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"type": "builtin_available_expression",
|
|
184
|
+
"named": true
|
|
185
|
+
},
|
|
182
186
|
{
|
|
183
187
|
"type": "call_expression",
|
|
184
188
|
"named": true
|
|
@@ -1244,6 +1248,21 @@
|
|
|
1244
1248
|
"named": true,
|
|
1245
1249
|
"fields": {}
|
|
1246
1250
|
},
|
|
1251
|
+
{
|
|
1252
|
+
"type": "builtin_available_expression",
|
|
1253
|
+
"named": true,
|
|
1254
|
+
"fields": {},
|
|
1255
|
+
"children": {
|
|
1256
|
+
"multiple": true,
|
|
1257
|
+
"required": false,
|
|
1258
|
+
"types": [
|
|
1259
|
+
{
|
|
1260
|
+
"type": "platform_version",
|
|
1261
|
+
"named": true
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1247
1266
|
{
|
|
1248
1267
|
"type": "call_expression",
|
|
1249
1268
|
"named": true,
|
|
@@ -2526,9 +2545,13 @@
|
|
|
2526
2545
|
}
|
|
2527
2546
|
},
|
|
2528
2547
|
"children": {
|
|
2529
|
-
"multiple":
|
|
2548
|
+
"multiple": true,
|
|
2530
2549
|
"required": false,
|
|
2531
2550
|
"types": [
|
|
2551
|
+
{
|
|
2552
|
+
"type": "attribute_declaration",
|
|
2553
|
+
"named": true
|
|
2554
|
+
},
|
|
2532
2555
|
{
|
|
2533
2556
|
"type": "attribute_specifier",
|
|
2534
2557
|
"named": true
|
|
@@ -4484,9 +4507,13 @@
|
|
|
4484
4507
|
"named": true,
|
|
4485
4508
|
"fields": {},
|
|
4486
4509
|
"children": {
|
|
4487
|
-
"multiple":
|
|
4488
|
-
"required":
|
|
4510
|
+
"multiple": true,
|
|
4511
|
+
"required": false,
|
|
4489
4512
|
"types": [
|
|
4513
|
+
{
|
|
4514
|
+
"type": "argument_list",
|
|
4515
|
+
"named": true
|
|
4516
|
+
},
|
|
4490
4517
|
{
|
|
4491
4518
|
"type": "identifier",
|
|
4492
4519
|
"named": true
|
|
@@ -4502,6 +4529,10 @@
|
|
|
4502
4529
|
"multiple": false,
|
|
4503
4530
|
"required": true,
|
|
4504
4531
|
"types": [
|
|
4532
|
+
{
|
|
4533
|
+
"type": "ms_pointer_size_modifier",
|
|
4534
|
+
"named": true
|
|
4535
|
+
},
|
|
4505
4536
|
{
|
|
4506
4537
|
"type": "ms_restrict_modifier",
|
|
4507
4538
|
"named": true
|
|
@@ -4521,6 +4552,11 @@
|
|
|
4521
4552
|
]
|
|
4522
4553
|
}
|
|
4523
4554
|
},
|
|
4555
|
+
{
|
|
4556
|
+
"type": "ms_pointer_size_modifier",
|
|
4557
|
+
"named": true,
|
|
4558
|
+
"fields": {}
|
|
4559
|
+
},
|
|
4524
4560
|
{
|
|
4525
4561
|
"type": "ms_unaligned_ptr_modifier",
|
|
4526
4562
|
"named": true,
|
|
@@ -5099,6 +5135,32 @@
|
|
|
5099
5135
|
]
|
|
5100
5136
|
}
|
|
5101
5137
|
},
|
|
5138
|
+
{
|
|
5139
|
+
"type": "platform_version",
|
|
5140
|
+
"named": true,
|
|
5141
|
+
"fields": {
|
|
5142
|
+
"platform": {
|
|
5143
|
+
"multiple": false,
|
|
5144
|
+
"required": true,
|
|
5145
|
+
"types": [
|
|
5146
|
+
{
|
|
5147
|
+
"type": "identifier",
|
|
5148
|
+
"named": true
|
|
5149
|
+
}
|
|
5150
|
+
]
|
|
5151
|
+
},
|
|
5152
|
+
"version": {
|
|
5153
|
+
"multiple": false,
|
|
5154
|
+
"required": true,
|
|
5155
|
+
"types": [
|
|
5156
|
+
{
|
|
5157
|
+
"type": "version_number",
|
|
5158
|
+
"named": true
|
|
5159
|
+
}
|
|
5160
|
+
]
|
|
5161
|
+
}
|
|
5162
|
+
}
|
|
5163
|
+
},
|
|
5102
5164
|
{
|
|
5103
5165
|
"type": "pointer_declarator",
|
|
5104
5166
|
"named": true,
|
|
@@ -8292,6 +8354,10 @@
|
|
|
8292
8354
|
"type": "__based",
|
|
8293
8355
|
"named": false
|
|
8294
8356
|
},
|
|
8357
|
+
{
|
|
8358
|
+
"type": "__builtin_available",
|
|
8359
|
+
"named": false
|
|
8360
|
+
},
|
|
8295
8361
|
{
|
|
8296
8362
|
"type": "__cdecl",
|
|
8297
8363
|
"named": false
|
|
@@ -8336,6 +8402,14 @@
|
|
|
8336
8402
|
"type": "__leave",
|
|
8337
8403
|
"named": false
|
|
8338
8404
|
},
|
|
8405
|
+
{
|
|
8406
|
+
"type": "__ptr32",
|
|
8407
|
+
"named": false
|
|
8408
|
+
},
|
|
8409
|
+
{
|
|
8410
|
+
"type": "__ptr64",
|
|
8411
|
+
"named": false
|
|
8412
|
+
},
|
|
8339
8413
|
{
|
|
8340
8414
|
"type": "__restrict__",
|
|
8341
8415
|
"named": false
|
|
@@ -8801,6 +8875,10 @@
|
|
|
8801
8875
|
"type": "using",
|
|
8802
8876
|
"named": false
|
|
8803
8877
|
},
|
|
8878
|
+
{
|
|
8879
|
+
"type": "version_number",
|
|
8880
|
+
"named": true
|
|
8881
|
+
},
|
|
8804
8882
|
{
|
|
8805
8883
|
"type": "virtual",
|
|
8806
8884
|
"named": false
|
package/tree-sitter-cpp.wasm
CHANGED
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"h"
|
|
16
16
|
],
|
|
17
17
|
"highlights": [
|
|
18
|
-
"node_modules/tree-sitter-c/queries/highlights.scm",
|
|
18
|
+
"node_modules/@willbooster/tree-sitter-c/queries/highlights.scm",
|
|
19
19
|
"queries/highlights.scm"
|
|
20
20
|
],
|
|
21
21
|
"injections": "queries/injections.scm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
26
|
"metadata": {
|
|
27
|
-
"version": "1.
|
|
27
|
+
"version": "1.1.1",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"description": "C++ grammar for tree-sitter",
|
|
30
30
|
"authors": [
|