aboutsummaryrefslogtreecommitdiff
path: root/core/errors.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:23 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-09 14:48:40 -0800
commita2f07415c5284bf94c146cea6eed4a15f171b9ab (patch)
tree925ab30d70cac56c24e007f7daa0b89b9f371f3c /core/errors.nom
parent7d2b7199d87930096b7fd799709fe0105d51eccb (diff)
Deprecating (% as lua statements) and (% as lua return)
Diffstat (limited to 'core/errors.nom')
-rw-r--r--core/errors.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/errors.nom b/core/errors.nom
index b2222ee..7cec344 100644
--- a/core/errors.nom
+++ b/core/errors.nom
@@ -63,16 +63,16 @@ test:
local fell_through = false
local err, erred = nil, false
local ok, ret = xpcall(function()
- \(%action as lua statements)
+ \(%action as lua)
fell_through = true
end, function(\(=lua "\%fallback and \(%msg as lua expr) or ''"))
local ok, ret = pcall(function()
- \((=lua "\%fallback or \%msg") as lua statements)
+ \((=lua "\%fallback or \%msg") as lua)
end)
if not ok then err, erred = ret, true end
end)
if ok then
- \(%success as lua statements)
+ \(%success as lua)
if not fell_through then
return ret
end