aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-17 17:53:07 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-17 17:53:17 -0700
commit854b2a652ff473c9d2eaa3222008d4baed36ae63 (patch)
tree82c14202cb84cbddfdca3f3812cee90ec0ba95f5 /nomsu_compiler.moon
parent77a338c1673ae5815ea2124f709cc657da30e8c8 (diff)
Fixed a bug in text escapes in nomsu codegen.
Diffstat (limited to 'nomsu_compiler.moon')
-rw-r--r--nomsu_compiler.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon
index e89dffa..1c69707 100644
--- a/nomsu_compiler.moon
+++ b/nomsu_compiler.moon
@@ -634,6 +634,7 @@ with NomsuCompiler
bit_lines = files.get_lines(bit)
for j, line in ipairs bit_lines
if j > 1 then nomsu\append "\n"
+ line = gsub(line, "\\", "\\\\")
if #line > 1.25*MAX_LINE
remainder = line
while #remainder > 0