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:
ISSOtm
2020-03-26 22:36:40 +01:00
parent 29629245a4
commit caddd61f17
2 changed files with 4 additions and 9 deletions

View File

@@ -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;
}