mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove "column 1" restriction for local labels
Because a local symbol is necessarily a label, the disambiguation is not necessary. This is a first step towards fixing #457.
This commit is contained in:
@@ -905,12 +905,8 @@ scanagain:
|
||||
if (type == T_ID && strchr(yylval.tzSym, '.'))
|
||||
type = T_LOCAL_ID;
|
||||
|
||||
if (linestart) {
|
||||
if (type == T_ID)
|
||||
return T_LABEL;
|
||||
if (type == T_LOCAL_ID)
|
||||
return T_LOCAL_LABEL;
|
||||
}
|
||||
if (linestart && type == T_ID)
|
||||
return T_LABEL;
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user