From 4b992bfea5f28886b9832d9c782a7c80fc166781 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 25 May 2026 14:05:01 -0400 Subject: [PATCH] Use the `name` of `sym_GetPC()` instead of hard-coding "@" again --- src/asm/lexer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/asm/lexer.cpp b/src/asm/lexer.cpp index 050a206f..9ca0bc67 100644 --- a/src/asm/lexer.cpp +++ b/src/asm/lexer.cpp @@ -1688,10 +1688,8 @@ static Token yylex_NORMAL() { case '?': return Token(T_(QUESTIONMARK)); - case '@': { - std::string symName("@"); - return Token(T_(SYMBOL), symName); - } + case '@': + return Token(T_(SYMBOL), sym_GetPC()->name); case '(': return Token(T_(LPAREN)); @@ -1773,8 +1771,7 @@ static Token yylex_NORMAL() { case ':': // Either :, ::, or an anonymous label ref c = peek(); if (c == '+' || c == '-') { - std::string symName = readAnonLabelRef(c); - return Token(T_(ANON), symName); + return Token(T_(ANON), readAnonLabelRef(c)); } return oneOrTwo(':', T_(DOUBLE_COLON), T_(COLON));