From 37458265a4efb71c0ba0a6e4699a17fdb5332abb Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 9 Apr 2026 14:06:53 -0400 Subject: [PATCH] Incorporate using_declaration Fixes #1606. Add the using_declaration to the ANTLR grammar for *declaration_statement*, In addition, add a sentence in the clause that points to the correct clause for the declaration. --- standard/statements.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/standard/statements.md b/standard/statements.md index f16cad12b..f0fbfc2e9 100644 --- a/standard/statements.md +++ b/standard/statements.md @@ -285,10 +285,11 @@ declaration_statement : local_variable_declaration ';' | local_constant_declaration ';' | local_function_declaration + | using_declaration ; ``` -A local variable is declared using a *local_variable_declaration* ([§13.6.2](statements.md#1362-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§13.6.3](statements.md#1363-local-constant-declarations)). A local function is declared using a *local_function_declaration* ([§13.6.4](statements.md#1364-local-function-declarations)). +A local variable is declared using a *local_variable_declaration* ([§13.6.2](statements.md#1362-local-variable-declarations)). A local constant is declared using a *local_constant_declaration* ([§13.6.3](statements.md#1363-local-constant-declarations)). A local function is declared using a *local_function_declaration* ([§13.6.4](statements.md#1364-local-function-declarations)). A using declaration is declared using a *using_declaration* (§13.14.2). The declared names are introduced into the nearest enclosing declaration space ([§7.3](basic-concepts.md#73-declarations)).