mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove column 1 restriction for labels with colons (#635)
Partial fix for #457
This commit is contained in:
@@ -2026,7 +2026,7 @@ static int yylex_NORMAL(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (tokenType == T_ID && lexerState->atLineStart)
|
||||
if (tokenType == T_ID && (lexerState->atLineStart || peek(0) == ':'))
|
||||
return T_LABEL;
|
||||
|
||||
return tokenType;
|
||||
|
||||
Reference in New Issue
Block a user