diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-10-24 11:13:27 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-10-24 11:13:27 +0200 |
commit | d91c37679b13162a4ead85abbe564090b2e1b51c (patch) | |
tree | 01b9c9e5a2437c7381b0f6d109cd51f0f6bed84e /metapost/context/base/mpiv/mp-luas.mpiv | |
parent | cb218b728af372a1ed6c9188765022dc057799ac (diff) | |
download | context-d91c37679b13162a4ead85abbe564090b2e1b51c.tar.gz |
2017-10-24 10:36:00
Diffstat (limited to 'metapost/context/base/mpiv/mp-luas.mpiv')
-rw-r--r-- | metapost/context/base/mpiv/mp-luas.mpiv | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/metapost/context/base/mpiv/mp-luas.mpiv b/metapost/context/base/mpiv/mp-luas.mpiv index 6444c6f07..99df0b861 100644 --- a/metapost/context/base/mpiv/mp-luas.mpiv +++ b/metapost/context/base/mpiv/mp-luas.mpiv @@ -49,10 +49,13 @@ boolean context_luas ; context_luas := true ; % % Fourth variant: +string mfun_lua_bs ; mfun_lua_bs = "[[" ; +string mfun_lua_es ; mfun_lua_es = "]]" ; + vardef mlib_luas_luacall(text t) = runscript("" for s = t : if string s : - & s + & mfun_lua_bs & s & mfun_lua_es elseif numeric s : & decimal s elseif boolean s : @@ -72,7 +75,7 @@ vardef mlib_luas_lualist(expr c)(text t) = hide(b := true) fi if string s : - & ditto & s & ditto + & mfun_lua_bs & s & mfun_lua_es elseif numeric s : & decimal s elseif boolean s : |