diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-05 16:37:56 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-05 16:38:18 -0700 |
| commit | 5dfdcb39a669756953f7c8fdadfa35a1c41f6d06 (patch) | |
| tree | e88f080e5c872e5c6580a8388f3d41e58db72e0a /nomsu.lua | |
| parent | 36b0c3dcf9342c3913253891c77df68a1edb90df (diff) | |
Fixed indentation detection for indented text with leading whitespace.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 2 |
1 files changed, 1 insertions, 1 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 |
