aboutsummaryrefslogtreecommitdiff
path: root/code_obj.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-28 14:12:24 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-28 14:13:01 -0700
commit0923b0192c8023a1a8d2304fa318cee08500d57d (patch)
tree2bc60e2b119cbd4b37b12251ab9e997447bfce01 /code_obj.moon
parent09d6bad6ac0d4509552d424471bcace649f69c8e (diff)
Improvements to nomsu codegen (comments are now retained) and some
improvements to handling of stdin and fixes for error reporting.
Diffstat (limited to 'code_obj.moon')
-rw-r--r--code_obj.moon1
1 files changed, 1 insertions, 0 deletions
diff --git a/code_obj.moon b/code_obj.moon
index a5c3960..ef19ed4 100644
--- a/code_obj.moon
+++ b/code_obj.moon
@@ -58,6 +58,7 @@ class Code
for i=1,n
b = select(i, ...)
assert(b)
+ if b == '' then continue
bits[#bits+1] = b
if type(b) == 'string'
if spaces = match(b, "\n([ ]*)[^\n]*$")