Mercurial Hosting > luan
comparison core/src/luan/modules/Io.luan @ 424:750a68eceb1d
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 16:33:42 -0600 |
parents | af82b266fe89 |
children | 5b36f663a1b8 |
comparison
equal
deleted
inserted
replaced
423:1eafb11a150d | 424:750a68eceb1d |
---|---|
59 for key, value in pairs(obj) do | 59 for key, value in pairs(obj) do |
60 if in_list[key] ~= true then | 60 if in_list[key] ~= true then |
61 if is_first then is_first = false else %>, <% end | 61 if is_first then is_first = false else %>, <% end |
62 if type(key) == "string" and key.match "^[a-zA-Z_][a-zA-Z_0-9]*$" ~= nil then | 62 if type(key) == "string" and key.match "^[a-zA-Z_][a-zA-Z_0-9]*$" ~= nil then |
63 %><%=key%><% | 63 %><%=key%><% |
64 elseif type(key) == "table" then | |
65 %>[<<%=key%>>]<% | |
64 else | 66 else |
65 %>[<%do_repr(key,done)%>]<% | 67 %>[<%do_repr(key,done)%>]<% |
66 end | 68 end |
67 %>=<% do_repr(value,done) | 69 %>=<% do_repr(value,done) |
68 end | 70 end |