aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-13 09:56:12 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-13 09:56:38 -0700
commit84c0058e69a18d5aec0ca4641725e87eddf4362f (patch)
tree635f2f30d1afa98eef4d4e2a9ad29d2fa4fc8d41 /parser.lua
parent295a25a3ed1d9012bf4fc018478afb56d94c30d1 (diff)
Switching to use 'unpack' for indentation grouping.
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua29
1 files changed, 1 insertions, 28 deletions
diff --git a/parser.lua b/parser.lua
index 979a29f..a4d2a90 100644
--- a/parser.lua
+++ b/parser.lua
@@ -26,6 +26,7 @@ do
_with_0.nl = P("\r") ^ -1 * P("\n")
_with_0.ws = S(" \t")
_with_0.tonumber = tonumber
+ _with_0.unpack = unpack or table.unpack
local string_escapes = {
n = "\n",
t = "\t",
@@ -91,34 +92,6 @@ setmetatable(NOMSU_DEFS, {
value.source = Source(_with_0.filename, _with_0.start + start - 1, _with_0.start + stop - 1)
end
end
- while true do
- local found = false
- for i = #value, 1, -1 do
- local _continue_0 = false
- repeat
- if not (type(value[i]) == 'table') then
- _continue_0 = true
- break
- end
- if value[i].is_halfblock then
- found = true
- local hb = remove(value, i)
- for _index_0 = 1, #hb do
- local v = hb[_index_0]
- insert(value, i, v)
- i = i + 1
- end
- end
- _continue_0 = true
- until true
- if not _continue_0 then
- break
- end
- end
- if not (found) then
- break
- end
- end
local comments = { }
for i = #value, 1, -1 do
local _continue_0 = false