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 +9 -9
- package/package.json +1 -1
- package/src/grammar.json +1 -1
- package/src/node-types.json +1 -1
- package/src/parser.c +1702 -1698
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
|
|
587
|
-
// refinement is a checker concern
|
|
588
|
-
// (the same general `@name(args)`
|
|
589
|
-
// permissive on cardinality, same as
|
|
590
|
-
// (commons-only) is a checker concern too, so this
|
|
591
|
-
// `_context_body_item`/`_adapter_body_item` as well,
|
|
592
|
-
// `service_decl`/`agent_decl`'s existing permissive placement
|
|
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", $.
|
|
596
|
+
field("tag", $.string_literal),
|
|
597
597
|
repeat(field("annotation", $.store_annotation)),
|
|
598
598
|
"{",
|
|
599
599
|
repeat($.message_entry),
|
package/package.json
CHANGED
package/src/grammar.json
CHANGED