diff options
| -rw-r--r-- | nomsu.lua | 2 | ||||
| -rwxr-xr-x | nomsu.moon | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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 |
