unified: More miscellaneous field additions

This commit is contained in:
Taus
2026-05-12 14:49:57 +00:00
parent 9902beddec
commit 6ff404a6d0
2 changed files with 2 additions and 2 deletions

View File

@@ -1818,7 +1818,7 @@ module.exports = grammar({
),
// The Swift compiler no longer accepts these, but some very old code still uses it.
deprecated_operator_declaration_body: ($) =>
seq("{", repeat(choice($.simple_identifier, $._basic_literal)), "}"),
seq("{", repeat(field("entry", choice($.simple_identifier, $._basic_literal))), "}"),
precedence_group_declaration: ($) =>
seq(
"precedencegroup",

View File

@@ -229,7 +229,7 @@ named:
body: function_body
modifiers?: modifiers
deprecated_operator_declaration_body:
$children*: [bin_literal, boolean_literal, hex_literal, integer_literal, line_string_literal, multi_line_string_literal, oct_literal, raw_string_literal, real_literal, regex_literal, simple_identifier]
entry*: [bin_literal, boolean_literal, hex_literal, integer_literal, line_string_literal, multi_line_string_literal, "nil", oct_literal, raw_string_literal, real_literal, regex_literal, simple_identifier]
diagnostic:
dictionary_literal:
key*: expression