A few small fixes to the pretty-printer
This commit is contained in:
@@ -223,10 +223,9 @@ public:
|
|||||||
if (needcomma) (*output_) << ",";
|
if (needcomma) (*output_) << ",";
|
||||||
needcomma = true;
|
needcomma = true;
|
||||||
tabify(level + 1);
|
tabify(level + 1);
|
||||||
|
if (!LS.rawequal(key, (i/2))) {
|
||||||
if (LS.isstring(key) && sv::is_lua_id(LS.ckstring(key))) {
|
if (LS.isstring(key) && sv::is_lua_id(LS.ckstring(key))) {
|
||||||
(*output_) << LS.ckstring(key);
|
(*output_) << LS.ckstring(key);
|
||||||
} else if (LS.istoken(key)) {
|
|
||||||
atomic_print(LUA_TLIGHTUSERDATA, key, false);
|
|
||||||
} else {
|
} else {
|
||||||
(*output_) << "[";
|
(*output_) << "[";
|
||||||
pprint_r(level + 1, false, key);
|
pprint_r(level + 1, false, key);
|
||||||
@@ -237,6 +236,7 @@ public:
|
|||||||
} else {
|
} else {
|
||||||
(*output_) << "=";
|
(*output_) << "=";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
pprint_r(level + 1, false, val);
|
pprint_r(level + 1, false, val);
|
||||||
}
|
}
|
||||||
if (print_meta) {
|
if (print_meta) {
|
||||||
|
|||||||
Reference in New Issue
Block a user