aboutsummaryrefslogtreecommitdiff
path: root/utils.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-09-14 19:39:27 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-09-14 19:39:27 -0700
commited0b5a3373add330b60b1850b8212eba681b031d (patch)
treeece79421fa502f928fde137ca6369944b6bb6f04 /utils.moon
parent6225462a1c9c007467787f9ee6e48cdd6a78dcfc (diff)
Fixed a bug in repr for strings ending in "]", and added moonscript
macros.
Diffstat (limited to 'utils.moon')
-rw-r--r--utils.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.moon b/utils.moon
index 1f6d0d7..069b1a0 100644
--- a/utils.moon
+++ b/utils.moon
@@ -22,7 +22,7 @@ utils = {
elseif not x\find[[']] and not x\find"\n"
"\'"..x.."\'"
else
- for i=0,math.huge
+ for i=1,math.huge
eq = ("=")\rep(i)
if not x\find"%[#{eq}%[" and not x\find"%]#{eq}%]"
-- Stupid bullshit add an extra newline because lua discards first one if it exists