From 0b4a81191ae61d53832d85614f0bb0f2912d7a39 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 26 May 2018 13:09:20 -0700 Subject: Minor tidying. --- nomsu.moon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.moon') 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 -- cgit v1.2.3