mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 20:25:34 +00:00
Fix incorrect documentation of accepted sym names
No, they cannot start with a digit!
This commit is contained in:
1 parent
91889fc14a
commit
914856342c
1 file changed
+9
-3
+9
-3
@@ -743,10 +743,16 @@ code that can be invoked later.
|
||||
String symbol that can be evaluated, similarly to a macro.
|
||||
.El
|
||||
.Pp
|
||||
Symbol names can contain letters, numbers, underscores, hashes and
|
||||
Symbol names can contain letters, numbers, underscores
|
||||
.Sq _ ,
|
||||
hashes
|
||||
.Sq #
|
||||
and at signs
|
||||
.Sq @ .
|
||||
However, they must begin with either a letter, a number, or an underscore.
|
||||
Periods are allowed exclusively for labels, as described below.
|
||||
However, they must begin with either a letter, or an underscore.
|
||||
Periods
|
||||
.Sq \&.
|
||||
are allowed exclusively for labels, as described below.
|
||||
A symbol cannot have the same name as a reserved keyword.
|
||||
.Em \&In the line where a symbol is defined there must not be any whitespace before it ,
|
||||
otherwise
|
||||
|
||||
Reference in new issue
Block a user