aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-26 13:09:20 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-26 13:09:25 -0700
commit0b4a81191ae61d53832d85614f0bb0f2912d7a39 (patch)
tree62a34b551d915f0f2b34be33cda1b0d44dfe8008 /nomsu.lua
parent64294f5cd6ab67236625cf4d645debafc35d0055 (diff)
Minor tidying.
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/nomsu.lua b/nomsu.lua
index d05a5e6..fcc3941 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -193,7 +193,7 @@ do
end)
_with_0.dedent = P(function(self, start)
local nodent = lpeg.userdata.indent_stack[#lpeg.userdata.indent_stack]
- local spaces = self:match("[ ]*", start)
+ local spaces = self:match("^[ ]*", start)
if #spaces <= #nodent - 4 then
remove(lpeg.userdata.indent_stack)
return start