Mercurial Hosting > luan
changeset 424:750a68eceb1d
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 16:33:42 -0600 |
parents | 1eafb11a150d |
children | 0a2fb80907f9 |
files | core/src/luan/modules/Io.luan |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r 1eafb11a150d -r 750a68eceb1d core/src/luan/modules/Io.luan --- a/core/src/luan/modules/Io.luan Fri May 01 16:30:28 2015 -0600 +++ b/core/src/luan/modules/Io.luan Fri May 01 16:33:42 2015 -0600 @@ -61,6 +61,8 @@ if is_first then is_first = false else %>, <% end if type(key) == "string" and key.match "^[a-zA-Z_][a-zA-Z_0-9]*$" ~= nil then %><%=key%><% + elseif type(key) == "table" then + %>[<<%=key%>>]<% else %>[<%do_repr(key,done)%>]<% end