tree-sitter-bynk 0.512.9 → 0.525.22

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/grammar.js CHANGED
@@ -279,6 +279,8 @@ module.exports = grammar({
279
279
  $.env_clause,
280
280
  $.stub_clause,
281
281
  $.fixture_decl,
282
+ $.type_decl,
283
+ $.const_decl,
282
284
  $.fn_decl,
283
285
  $.case,
284
286
  $.property_decl,
@@ -415,6 +417,8 @@ module.exports = grammar({
415
417
  "opaque",
416
418
  field("base", $._base_type),
417
419
  optional(seq("where", field("refinement", $.refinement))),
420
+ // #2686: `@example(…)` after the refinement.
421
+ repeat(field("annotation", $.store_annotation)),
418
422
  ),
419
423
 
420
424
  refined_type: ($) =>
@@ -423,6 +427,8 @@ module.exports = grammar({
423
427
  seq(
424
428
  field("base", $._base_type),
425
429
  optional(seq("where", field("refinement", $.refinement))),
430
+ // #2686: `@example(…)` after the refinement.
431
+ repeat(field("annotation", $.store_annotation)),
426
432
  ),
427
433
  ),
428
434
 
@@ -440,6 +446,8 @@ module.exports = grammar({
440
446
  ":",
441
447
  field("type", $._type_ref),
442
448
  optional(seq("where", field("refinement", $.refinement))),
449
+ // #2686: `@example(…)` after the refinement.
450
+ repeat(field("annotation", $.store_annotation)),
443
451
  // v0.11: an optional initial-value expression. Meaningful on agent
444
452
  // `store` fields; the checker restricts where it applies.
445
453
  optional(seq("=", field("init", $._expression))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-bynk",
3
- "version": "0.512.9",
3
+ "version": "0.525.22",
4
4
  "description": "Tree-sitter grammar for the Bynk language.",
5
5
  "main": "bindings/node",
6
6
  "types": "bindings/node",
package/src/grammar.json CHANGED
@@ -586,6 +586,14 @@
586
586
  "type": "SYMBOL",
587
587
  "name": "fixture_decl"
588
588
  },
589
+ {
590
+ "type": "SYMBOL",
591
+ "name": "type_decl"
592
+ },
593
+ {
594
+ "type": "SYMBOL",
595
+ "name": "const_decl"
596
+ },
589
597
  {
590
598
  "type": "SYMBOL",
591
599
  "name": "fn_decl"
@@ -1398,6 +1406,17 @@
1398
1406
  "type": "BLANK"
1399
1407
  }
1400
1408
  ]
1409
+ },
1410
+ {
1411
+ "type": "REPEAT",
1412
+ "content": {
1413
+ "type": "FIELD",
1414
+ "name": "annotation",
1415
+ "content": {
1416
+ "type": "SYMBOL",
1417
+ "name": "store_annotation"
1418
+ }
1419
+ }
1401
1420
  }
1402
1421
  ]
1403
1422
  },
@@ -1439,6 +1458,17 @@
1439
1458
  "type": "BLANK"
1440
1459
  }
1441
1460
  ]
1461
+ },
1462
+ {
1463
+ "type": "REPEAT",
1464
+ "content": {
1465
+ "type": "FIELD",
1466
+ "name": "annotation",
1467
+ "content": {
1468
+ "type": "SYMBOL",
1469
+ "name": "store_annotation"
1470
+ }
1471
+ }
1442
1472
  }
1443
1473
  ]
1444
1474
  }
@@ -1549,6 +1579,17 @@
1549
1579
  }
1550
1580
  ]
1551
1581
  },
1582
+ {
1583
+ "type": "REPEAT",
1584
+ "content": {
1585
+ "type": "FIELD",
1586
+ "name": "annotation",
1587
+ "content": {
1588
+ "type": "SYMBOL",
1589
+ "name": "store_annotation"
1590
+ }
1591
+ }
1592
+ },
1552
1593
  {
1553
1594
  "type": "CHOICE",
1554
1595
  "members": [
@@ -8618,6 +8618,16 @@
8618
8618
  "type": "opaque_type",
8619
8619
  "named": true,
8620
8620
  "fields": {
8621
+ "annotation": {
8622
+ "multiple": true,
8623
+ "required": false,
8624
+ "types": [
8625
+ {
8626
+ "type": "store_annotation",
8627
+ "named": true
8628
+ }
8629
+ ]
8630
+ },
8621
8631
  "base": {
8622
8632
  "multiple": false,
8623
8633
  "required": true,
@@ -9448,6 +9458,16 @@
9448
9458
  "type": "record_field",
9449
9459
  "named": true,
9450
9460
  "fields": {
9461
+ "annotation": {
9462
+ "multiple": true,
9463
+ "required": false,
9464
+ "types": [
9465
+ {
9466
+ "type": "store_annotation",
9467
+ "named": true
9468
+ }
9469
+ ]
9470
+ },
9451
9471
  "init": {
9452
9472
  "multiple": false,
9453
9473
  "required": false,
@@ -9927,6 +9947,16 @@
9927
9947
  "type": "refined_type",
9928
9948
  "named": true,
9929
9949
  "fields": {
9950
+ "annotation": {
9951
+ "multiple": true,
9952
+ "required": false,
9953
+ "types": [
9954
+ {
9955
+ "type": "store_annotation",
9956
+ "named": true
9957
+ }
9958
+ ]
9959
+ },
9930
9960
  "base": {
9931
9961
  "multiple": false,
9932
9962
  "required": true,
@@ -12328,6 +12358,10 @@
12328
12358
  "type": "case",
12329
12359
  "named": true
12330
12360
  },
12361
+ {
12362
+ "type": "const_decl",
12363
+ "named": true
12364
+ },
12331
12365
  {
12332
12366
  "type": "consumes_decl",
12333
12367
  "named": true
@@ -12352,6 +12386,10 @@
12352
12386
  "type": "stub_clause",
12353
12387
  "named": true
12354
12388
  },
12389
+ {
12390
+ "type": "type_decl",
12391
+ "named": true
12392
+ },
12355
12393
  {
12356
12394
  "type": "uses_decl",
12357
12395
  "named": true