diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-18 01:49:13 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-18 01:49:27 -0800 |
| commit | f91d06d9fa567b26a098ff26a0339afdd5daa778 (patch) | |
| tree | 6899c345433629b05c5b51f6545ae7ba02a692e7 /lib/text.nom | |
| parent | 12cc294c7ac31e3d08d6b8924dfc6cc427a1f712 (diff) | |
Initial commit of object oriented classes.
Diffstat (limited to 'lib/text.nom')
| -rw-r--r-- | lib/text.nom | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/text.nom b/lib/text.nom index 9db8a07..5cb268d 100644 --- a/lib/text.nom +++ b/lib/text.nom @@ -52,8 +52,8 @@ lua do> ".." local color = "'"..c.."'"; local reset = "'"..colors["reset color"].."'"; nomsu:define_compile_action(name, \(__line_no__), function() return {expr=color}; end, \(__src__ 1)); - nomsu:define_compile_action(name.." %", \(__line_no__), function(_) - return {expr=color..".."..nomsu:tree_to_lua(_).expr..".."..reset}; + nomsu:define_compile_action(name.." %", \(__line_no__), function(\%) + return {expr=color..".."..nomsu:tree_to_lua(\%).expr..".."..reset}; end, \(__src__ 1)); end @@ -85,8 +85,8 @@ lua do> ".." local e = "'"..\%str.."'"; local reset = "'"..\(%colors->"reset color").."'"; nomsu:define_compile_action(\%name, \(__line_no__), function(nomsu) return {expr=e}; end, \(__src__ 1)); - nomsu:define_compile_action(\%name.." %", \(__line_no__), function(nomsu, _) - return {expr=e..".."..nomsu:tree_to_lua(_).expr..".."..reset}; + nomsu:define_compile_action(\%name.." %", \(__line_no__), function(nomsu, \%) + return {expr=e..".."..nomsu:tree_to_lua(\%).expr..".."..reset}; end, \(__src__ 1)); # FIXME |
