@willbooster/tree-sitter-cpp 1.3.3 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-cpp",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "C++ grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -46,7 +46,7 @@
46
46
  "@willbooster/oxlint-config": "1.4.8",
47
47
  "@willbooster/tree-sitter-c": "1.1.6",
48
48
  "@willbooster/wb": "22.13.2",
49
- "@willbooster/web-tree-sitter": "1.0.17",
49
+ "@willbooster/web-tree-sitter": "1.1.1",
50
50
  "conventional-changelog-conventionalcommits": "10.4.0",
51
51
  "lefthook": "2.1.14",
52
52
  "oxfmt": "0.70.0",
@@ -62,7 +62,7 @@
62
62
  "wrangler": "4.136.2"
63
63
  },
64
64
  "peerDependencies": {
65
- "@willbooster/web-tree-sitter": "^1.0.0"
65
+ "@willbooster/web-tree-sitter": "^1.1.1"
66
66
  },
67
67
  "peerDependenciesMeta": {
68
68
  "@willbooster/web-tree-sitter": {
@@ -58,6 +58,8 @@
58
58
  "noexcept"
59
59
  "new"
60
60
  "override"
61
+ "pre"
62
+ "post"
61
63
  "private"
62
64
  "protected"
63
65
  "public"
@@ -582,6 +582,10 @@
582
582
  "type": "attribute_specifier",
583
583
  "named": true
584
584
  },
585
+ {
586
+ "type": "contract_specifier",
587
+ "named": true
588
+ },
585
589
  {
586
590
  "type": "gnu_asm_expression",
587
591
  "named": true
@@ -2192,6 +2196,42 @@
2192
2196
  "named": true,
2193
2197
  "fields": {}
2194
2198
  },
2199
+ {
2200
+ "type": "contract_specifier",
2201
+ "named": true,
2202
+ "fields": {
2203
+ "condition": {
2204
+ "multiple": false,
2205
+ "required": true,
2206
+ "types": [
2207
+ {
2208
+ "type": "expression",
2209
+ "named": true
2210
+ }
2211
+ ]
2212
+ },
2213
+ "result": {
2214
+ "multiple": false,
2215
+ "required": false,
2216
+ "types": [
2217
+ {
2218
+ "type": "identifier",
2219
+ "named": true
2220
+ }
2221
+ ]
2222
+ }
2223
+ },
2224
+ "children": {
2225
+ "multiple": true,
2226
+ "required": false,
2227
+ "types": [
2228
+ {
2229
+ "type": "attribute_declaration",
2230
+ "named": true
2231
+ }
2232
+ ]
2233
+ }
2234
+ },
2195
2235
  {
2196
2236
  "type": "declaration",
2197
2237
  "named": true,
@@ -2658,6 +2698,16 @@
2658
2698
  }
2659
2699
  ]
2660
2700
  }
2701
+ },
2702
+ "children": {
2703
+ "multiple": true,
2704
+ "required": false,
2705
+ "types": [
2706
+ {
2707
+ "type": "attribute_declaration",
2708
+ "named": true
2709
+ }
2710
+ ]
2661
2711
  }
2662
2712
  },
2663
2713
  {
@@ -3646,6 +3696,10 @@
3646
3696
  "type": "attribute_specifier",
3647
3697
  "named": true
3648
3698
  },
3699
+ {
3700
+ "type": "contract_specifier",
3701
+ "named": true
3702
+ },
3649
3703
  {
3650
3704
  "type": "gnu_asm_expression",
3651
3705
  "named": true
@@ -4372,6 +4426,10 @@
4372
4426
  "type": "attribute_declaration",
4373
4427
  "named": true
4374
4428
  },
4429
+ {
4430
+ "type": "contract_specifier",
4431
+ "named": true
4432
+ },
4375
4433
  {
4376
4434
  "type": "lambda_specifier",
4377
4435
  "named": true
@@ -8832,6 +8890,14 @@
8832
8890
  "type": "override",
8833
8891
  "named": false
8834
8892
  },
8893
+ {
8894
+ "type": "post",
8895
+ "named": false
8896
+ },
8897
+ {
8898
+ "type": "pre",
8899
+ "named": false
8900
+ },
8835
8901
  {
8836
8902
  "type": "preproc_arg",
8837
8903
  "named": true
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "1.3.3",
27
+ "version": "1.4.0",
28
28
  "license": "MIT",
29
29
  "description": "C++ grammar for tree-sitter",
30
30
  "authors": [