aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
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 5890592..8fef96c 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -166,7 +166,7 @@ NOMSU_DEFS = with {}
-- stack minus 4, this pattern matches and pops off the top of the stack exactly once.
.dedent = P (start)=>
nodent = lpeg.userdata.indent_stack[#lpeg.userdata.indent_stack]
- spaces = @match("[ ]*", start)
+ spaces = @match("^[ ]*", start)
if #spaces <= #nodent-4
remove(lpeg.userdata.indent_stack)
return start