From c3e27217ddb534a2837c4d6e80fe869d3aca6b08 Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 20 Apr 2021 10:37:27 -0400 Subject: [PATCH] More specific "Symbol name too long" error messages Identifiers, {interpolations} and \ are distinct --- src/asm/lexer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 7d2c96c1..83be6774 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -753,7 +753,7 @@ static uint32_t readBracketedMacroArgNum(void) } if (i == sizeof(symName)) { - warning(WARNING_LONG_STR, "Symbol name too long\n"); + warning(WARNING_LONG_STR, "Bracketed symbol name too long\n"); i--; } symName[i] = '\0'; @@ -1396,7 +1396,7 @@ static char const *readInterpolation(unsigned int depth) } if (i == sizeof(symName)) { - warning(WARNING_LONG_STR, "Symbol name too long\n"); + warning(WARNING_LONG_STR, "Interpolated symbol name too long\n"); i--; } symName[i] = '\0';