ref: 1b5648bb064d4f002db56cd691baa667d2b537b2
parent: a67f5d6e019252b37e2f6ab0e45b500f9e5e2a28
author: Rangi <[email protected]>
date: Thu Jul 1 13:56:49 EDT 2021
Line continuations *do* work inside strings The rgbasm.5(5) documentation was outdated here
--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -66,15 +66,8 @@
DB 1, 2, 3,\ \[rs]
4, 5, 6,\ \[rs]\ ;\ Put it before any comments
7, 8, 9
-.Ed
-.Pp
-This works anywhere in the code except inside of strings.
-To split strings it is needed to use
-.Fn STRCAT
-like this:
-.Bd -literal -offset indent
- db STRCAT("Hello ",\ \[rs]
- "world!")
+ DB "Hello,\ \[rs]\ \ ;\ Space before the \[rs] is included
+world!"\ \ \ \ \ \ \ \ \ \ \ ;\ Any leading space is included
.Ed
.Sh EXPRESSIONS
An expression can be composed of many things.
--- /dev/null
+++ b/test/asm/line-continuation-string.out
@@ -1,0 +1,1 @@
+Line continuations work!