gbdev / rgbds

Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy and Game Boy Color
https://rgbds.gbdev.io
MIT License
1.33k stars 171 forks source link

Don't treat labels and macros differently in column 1 #1512

Closed Rangi42 closed 1 week ago

Rangi42 commented 1 week ago

Remove the atLineStart condition for determining whether an identifier lexes as ID or LABEL (keep the check for peek() == ':')). This would mean that column-1 mac args behaves as a macro invocation, which is probably what users want. (It would also mean that although column-1 Label: is still a label, column-1 Label : is not, and would probably complain "Macro "Label" not defined".)