tree-sitter-bynk 0.232.0 → 0.233.2

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
@@ -581,19 +581,19 @@ module.exports = grammar({
581
581
  field("return_type", $._type_ref),
582
582
  ),
583
583
 
584
- // message-bundles track, slice 1 (#859): `messages <tag> @reference {
584
+ // message-bundles track, slice 1 (#859): `messages "<tag>" @reference {
585
585
  // "code" => "template" ... }` — a commons item declaring one locale's
586
- // message bundle. `tag` is a plain identifier (its `LocaleTag`
587
- // refinement is a checker concern); annotations reuse `store_annotation`
588
- // (the same general `@name(args)` shape, ADR 0111) — the parser stays
589
- // permissive on cardinality, same as the Rust side. Legality
590
- // (commons-only) is a checker concern too, so this rule is admitted in
591
- // `_context_body_item`/`_adapter_body_item` as well, mirroring
592
- // `service_decl`/`agent_decl`'s existing permissive placement there.
586
+ // message bundle. `tag` is a `LocaleTag` string literal (#899, like an
587
+ // entry's `code`/`template`); its refinement is a checker concern.
588
+ // Annotations reuse `store_annotation` (the same general `@name(args)`
589
+ // shape, ADR 0111) — the parser stays permissive on cardinality, same as
590
+ // the Rust side. Legality (commons-only) is a checker concern too, so this
591
+ // rule is admitted in `_context_body_item`/`_adapter_body_item` as well,
592
+ // mirroring `service_decl`/`agent_decl`'s existing permissive placement.
593
593
  messages_decl: ($) =>
594
594
  seq(
595
595
  "messages",
596
- field("tag", $.identifier),
596
+ field("tag", $.string_literal),
597
597
  repeat(field("annotation", $.store_annotation)),
598
598
  "{",
599
599
  repeat($.message_entry),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tree-sitter-bynk",
3
- "version": "0.232.0",
3
+ "version": "0.233.2",
4
4
  "description": "Tree-sitter grammar for the Bynk DSL (v0–v0.16).",
5
5
  "main": "bindings/node",
6
6
  "types": "bindings/node",
package/src/grammar.json CHANGED
@@ -2452,7 +2452,7 @@
2452
2452
  "name": "tag",
2453
2453
  "content": {
2454
2454
  "type": "SYMBOL",
2455
- "name": "identifier"
2455
+ "name": "string_literal"
2456
2456
  }
2457
2457
  },
2458
2458
  {
@@ -5818,7 +5818,7 @@
5818
5818
  "required": true,
5819
5819
  "types": [
5820
5820
  {
5821
- "type": "identifier",
5821
+ "type": "string_literal",
5822
5822
  "named": true
5823
5823
  }
5824
5824
  ]