mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Deprecate colon-less non-local labels
This commit is contained in:
@@ -659,7 +659,10 @@ line : label
|
||||
| pseudoop
|
||||
;
|
||||
|
||||
scoped_label_bare : T_LABEL | T_LOCAL_LABEL ;
|
||||
scoped_label_bare : T_LABEL {
|
||||
warning(WARNING_OBSOLETE, "Non-local labels without a colon are deprecated");
|
||||
}
|
||||
| T_LOCAL_LABEL ;
|
||||
scoped_label : T_LABEL ':'
|
||||
{
|
||||
strcpy($$, $1);
|
||||
|
||||
@@ -30,4 +30,4 @@ X EQUS "{X7E}"
|
||||
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+\
|
||||
X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X+X
|
||||
|
||||
x db 0
|
||||
x: db 0
|
||||
|
||||
Reference in New Issue
Block a user