aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-26 13:09:20 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-26 13:09:25 -0700
commit0b4a81191ae61d53832d85614f0bb0f2912d7a39 (patch)
tree62a34b551d915f0f2b34be33cda1b0d44dfe8008 /nomsu.moon
parent64294f5cd6ab67236625cf4d645debafc35d0055 (diff)
Minor tidying.
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