mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Comment that anonymous labels internally start with '!'
`startsIdentifier` should not accept this character so anonymous labels won't conflict with nonymous ones.
This commit is contained in:
@@ -1307,6 +1307,7 @@ static uint32_t readGfxConstant(void)
|
|||||||
|
|
||||||
static bool startsIdentifier(int c)
|
static bool startsIdentifier(int c)
|
||||||
{
|
{
|
||||||
|
// Anonymous labels internally start with '!'
|
||||||
return (c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a') || c == '.' || c == '_';
|
return (c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a') || c == '.' || c == '_';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user