From ed0b5a3373add330b60b1850b8212eba681b031d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Sep 2017 19:39:27 -0700 Subject: Fixed a bug in repr for strings ending in "]", and added moonscript macros. --- utils.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.moon') 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 -- cgit v1.2.3