mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Document that symbol interpolation works outside of strings too
This commit is contained in:
10
man/rgbasm.5
10
man/rgbasm.5
@@ -71,13 +71,11 @@ To do so, put a backslash at the end of the line:
|
|||||||
world!"\ \ \ \ \ \ \ \ \ \ \ ;\ Any leading space is included
|
world!"\ \ \ \ \ \ \ \ \ \ \ ;\ Any leading space is included
|
||||||
.Ed
|
.Ed
|
||||||
.Ss Symbol interpolation
|
.Ss Symbol interpolation
|
||||||
A funky feature is
|
A funky feature is writing a symbol between
|
||||||
.Ql {symbol}
|
.Ql {braces} ,
|
||||||
within a string, called
|
called
|
||||||
.Dq symbol interpolation .
|
.Dq symbol interpolation .
|
||||||
This will paste the contents of
|
This will paste the symbol's contents as if they were part of the source file.
|
||||||
.Ql symbol
|
|
||||||
as if they were part of the source file.
|
|
||||||
If it is a string symbol, its characters are simply inserted as-is.
|
If it is a string symbol, its characters are simply inserted as-is.
|
||||||
If it is a numeric symbol, its value is converted to hexadecimal notation with a dollar sign
|
If it is a numeric symbol, its value is converted to hexadecimal notation with a dollar sign
|
||||||
.Sq $
|
.Sq $
|
||||||
|
|||||||
Reference in New Issue
Block a user