aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-15 15:53:31 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-15 15:54:28 -0800
commitbf37295faeb9535c56671f4b2050260e1b88cd32 (patch)
treed544b68bca8c5bdf0926cc20a12f925c1761cfda /parser.lua
parentef70abe4b7ed8d04574ab24ea4fd74fe2a64221f (diff)
Updating to v6.15, which includes "external (...)" instead of separate
'externally' versions of stuff, and some auto-formatting.
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.lua b/parser.lua
index 2ae4aee..4016e9b 100644
--- a/parser.lua
+++ b/parser.lua
@@ -96,7 +96,7 @@ make_parser = function(peg, make_tree)
file = input
}
local tree = peg:match(input, nil, userdata)
- if not tree then
+ if not tree or type(tree) == 'number' then
error("File " .. tostring(filename) .. " failed to parse:\n" .. tostring(input))
end
return tree