diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-27 16:45:11 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-27 16:45:35 -0700 |
| commit | b54829de363f67a8a6f6131ceb0eb27aa09d4292 (patch) | |
| tree | c03e3a7ad9a5cd58d0055b262e0ddf1bca89ba97 /core/metaprogramming.nom | |
| parent | 6fecb5d3950949d3bcf232f74283229248c21247 (diff) | |
Better text interpolation/handling of "\". Also added syntax support for
(statement; statement)
Diffstat (limited to 'core/metaprogramming.nom')
| -rw-r--r-- | core/metaprogramming.nom | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/metaprogramming.nom b/core/metaprogramming.nom index e967172..fdbae61 100644 --- a/core/metaprogramming.nom +++ b/core/metaprogramming.nom @@ -13,7 +13,7 @@ immediately end stubs = repr(stubs); if #stubs > 80 then - lua:append("\\n ",stubs,",\\n "); + lua:append("\n ",stubs,",\n "); else lua:append(stubs,", "); end @@ -30,7 +30,7 @@ immediately body_lua:convert_to_statements("return "); body_lua:remove_free_vars(unpack(args)); body_lua:declare_locals(); - lua:append(")\\n ", body_lua, "\\nend);"); + lua:append(")\n ", body_lua, "\nend);"); return lua; end); @@ -45,7 +45,7 @@ immediately end stubs = repr(stubs); if #stubs > 80 then - lua:append("\\n ",stubs,",\\n "); + lua:append("\n ",stubs,",\n "); else lua:append(stubs,", "); end @@ -62,7 +62,7 @@ immediately body_lua:convert_to_statements("return "); body_lua:remove_free_vars(unpack(args)); body_lua:declare_locals(); - lua:append(")\\n ", body_lua, "\\nend);") + lua:append(")\n ", body_lua, "\nend);") return lua; # Macro to make nomsu macros @@ -76,7 +76,7 @@ immediately end stubs = repr(stubs); if #stubs > 80 then - lua:append("\\n ",stubs,",\\n "); + lua:append("\n ",stubs,",\n "); else lua:append(stubs,", "); end |
