mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Only copy necessary characters for bare labels
This commit is contained in:
@@ -669,8 +669,11 @@ line : label
|
|||||||
|
|
||||||
scoped_label_bare : T_LABEL {
|
scoped_label_bare : T_LABEL {
|
||||||
warning(WARNING_OBSOLETE, "Non-local labels without a colon are deprecated");
|
warning(WARNING_OBSOLETE, "Non-local labels without a colon are deprecated");
|
||||||
|
strcpy($$, $1);
|
||||||
|
}
|
||||||
|
| T_LOCAL_ID {
|
||||||
|
strcpy($$, $1);
|
||||||
}
|
}
|
||||||
| T_LOCAL_ID
|
|
||||||
;
|
;
|
||||||
scoped_label : T_LABEL ':' {
|
scoped_label : T_LABEL ':' {
|
||||||
strcpy($$, $1);
|
strcpy($$, $1);
|
||||||
|
|||||||
Reference in New Issue
Block a user