aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu.lua2
-rwxr-xr-xnomsu.moon2
2 files changed, 2 insertions, 2 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 68a4398..15484d4 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -191,7 +191,7 @@ do
_with_0.utf8_char = (R("\194\223") * R("\128\191") + R("\224\239") * R("\128\191") * R("\128\191") + R("\240\244") * R("\128\191") * R("\128\191") * R("\128\191"))
_with_0.ident_char = R("az", "AZ", "09") + P("_") + _with_0.utf8_char
_with_0.indent = Cmt(Carg(1), function(self, start, userdata)
- if #self:match("^[ ]*", start) == userdata.indent + 4 then
+ if #self:match("^[ ]*", start) >= userdata.indent + 4 then
userdata.indent = userdata.indent + 4
return start + userdata.indent
end
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