From 23721694ea711eabdc96285c099bbe7afb90bbe8 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 15 May 2021 12:57:22 -0400 Subject: [PATCH] Comment that anonymous labels internally start with '!' `startsIdentifier` should not accept this character so anonymous labels won't conflict with nonymous ones. --- src/asm/lexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index 3a7425ab..2cd35007 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -1307,6 +1307,7 @@ static uint32_t readGfxConstant(void) static bool startsIdentifier(int c) { + // Anonymous labels internally start with '!' return (c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a') || c == '.' || c == '_'; }