aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-06-05 16:37:56 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-06-05 16:38:18 -0700
commit5dfdcb39a669756953f7c8fdadfa35a1c41f6d06 (patch)
treee88f080e5c872e5c6580a8388f3d41e58db72e0a /nomsu.moon
parent36b0c3dcf9342c3913253891c77df68a1edb90df (diff)
Fixed indentation detection for indented text with leading whitespace.
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index ddb29c3..edf0c47 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -156,7 +156,7 @@ NOMSU_DEFS = with {}
-- If the line begins with #indent+4 spaces, the pattern matches *those* spaces
-- and adds them to the stack (not any more).
.indent = Cmt Carg(1), (start, userdata)=>
- if #@match("^[ ]*", start) == userdata.indent + 4
+ if #@match("^[ ]*", start) >= userdata.indent + 4
userdata.indent += 4
return start + userdata.indent
-- If the number of leading space characters is <= the number of space on the top of the