mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 23:37:48 +00:00
Implement a '#' prefix for raw identifiers that may alias keywords (#1480)
* Implement a '#' prefix for raw identifiers that may alias keywords * Review comments * Disallow hashless raw identifiers in interpolations * Run clang-format
This commit is contained in:
15
man/rgbasm.5
15
man/rgbasm.5
@@ -1068,7 +1068,20 @@ Additionally, label names can contain up to a single dot
|
||||
.Ql \&. ,
|
||||
which may not be the first character.
|
||||
.Pp
|
||||
A symbol cannot have the same name as a reserved keyword.
|
||||
A symbol cannot have the same name as a reserved keyword, unless it is prefixed by a hash
|
||||
.Sq # .
|
||||
For example,
|
||||
.Ql #load
|
||||
denotes a symbol named
|
||||
.Ql load ,
|
||||
and
|
||||
.Ql #LOAD
|
||||
denotes a different symbol named
|
||||
.Ql LOAD ;
|
||||
in both cases the
|
||||
.Sq #
|
||||
prevents them from being treated as the keyword
|
||||
.Ic LOAD .
|
||||
.Ss Labels
|
||||
One of the assembler's main tasks is to keep track of addresses for you, so you can work with meaningful names instead of
|
||||
.Dq magic
|
||||
|
||||
Reference in New Issue
Block a user