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.moon | |
| parent | 36b0c3dcf9342c3913253891c77df68a1edb90df (diff) | |
Fixed indentation detection for indented text with leading whitespace.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
