Mercurial > projects > ddmd
diff dmd/Json.d @ 96:acd69f84627e
further work
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 02:12:15 +0200 |
parents | 43073c7c7769 |
children | e28b18c23469 |
line wrap: on
line diff
--- a/dmd/Json.d Mon Aug 30 23:08:44 2010 +0200 +++ b/dmd/Json.d Tue Aug 31 02:12:15 2010 +0200 @@ -25,13 +25,17 @@ { OutBuffer buf; + buf.writestring("[\n"); for (int i = 0; i < modules.dim; i++) { Module m = cast(Module)modules.data[i]; if (global.params.verbose) writef("json gen %s\n", m.toChars()); m.toJsonBuffer(buf); + buf.writestring(",\n"); } + JsonRemoveComma(buf); + buf.writestring("]\n"); // Write buf to file string arg = global.params.xfilename;