From a2f07415c5284bf94c146cea6eed4a15f171b9ab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 9 Nov 2018 14:48:23 -0800 Subject: Deprecating (% as lua statements) and (% as lua return) --- core/errors.nom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/errors.nom') 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 -- cgit v1.2.3