From 948228f0e250d191a97359e97faa6ee4934e9e7a Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 24 Apr 2026 22:49:38 +0200 Subject: Allow scoped names in __fallthrough__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes 4f1a9c660108 ("Add the .fallthrough control statement") Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/assembler.rs | 2 +- tests/expected/fallthrough.nes | Bin 21 -> 22 bytes tests/fallthrough.s | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 614bee4..c9800d9 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -1114,7 +1114,7 @@ impl<'a> Assembler<'a> { } // If there is an argument, it has to be a valid address identifier. - if let Err(message) = pn.node.value.is_valid_identifier(false) { + if let Err(message) = pn.node.value.is_valid_identifier(true) { return Err(Error { line: pn.node.value.line, message, diff --git a/tests/expected/fallthrough.nes b/tests/expected/fallthrough.nes index 976f8fc..e155d18 100644 Binary files a/tests/expected/fallthrough.nes and b/tests/expected/fallthrough.nes differ diff --git a/tests/fallthrough.s b/tests/fallthrough.s index 2243415..878b5e4 100644 --- a/tests/fallthrough.s +++ b/tests/fallthrough.s @@ -22,4 +22,14 @@ __fallthrough__ bar rts .endproc +.scope Scope + .proc foo + __fallthrough__ Scope::bar + .endproc + + .proc bar + rts + .endproc +.endscope + ;;; asan:stack full -- cgit v1.2.3