aboutsummaryrefslogtreecommitdiff
path: root/lib/utils.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-12-04 17:35:47 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2017-12-04 17:35:47 -0800
commitb3b8c4d731b0983d5b12c56fc245a8d7c1d631f4 (patch)
tree21c1bf182440b26edb621e76cf8e730d7dc6849e /lib/utils.nom
parent8c0816995afaaf34cbfe903e6da68d8b6d8e8c39 (diff)
Some stuff changed to allow escaped args and some other ports from the
two_defs branch.
Diffstat (limited to 'lib/utils.nom')
-rw-r--r--lib/utils.nom21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/utils.nom b/lib/utils.nom
index 965d338..ef0e61e 100644
--- a/lib/utils.nom
+++ b/lib/utils.nom
@@ -130,24 +130,3 @@ lua> ".."
| end;
|end;
-compile [try %action and if it fails %fallback] to code: ".."
- |do
- | local _write_err = nomsu.write_err
- | nomsu.write_err = function() end;
- | local had_return = true;
- | local ok, ret1, ret2 = pcall(function(nomsu, vars)
- | local ret
- | \(%action as lua statements)
- | had_return = false;
- | return ret;
- | end, nomsu, vars);
- | nomsu.write_err = _write_err;
- | if not ok then
- | \(%fallback as lua statements)
- | elseif had_return then
- | return ret1, ret2;
- | else
- | ret = ret1;
- | end
- |end
-