An advanced pretty printer, aiming for human readability.
Jon Michael Aanes
87b12e15b2
The most significant was a misclassification of tables with number exclusive keys, with huge jumps between each one. Example: { 1, [300] = 300 } This was caused by logic faults in `get_table_info`, which has been fixed. When solving above issue, a two new issues appeared: 1. Due to a logic fault, the count of number of elements in a table was wrong, leading to issues with tables with boolean keys. This was fixed with simple logic changes. 2. Some very small tables (1 element) would be classified as sets, and thus rendered wrongly. This was fixed by adding a MINIMUM_NUMBER_OF_SET_ELEMENTS constant. |
||
---|---|---|
test | ||
analyze_structure.lua | ||
function.lua | ||
init.lua | ||
library.lua | ||
number.lua | ||
pretty.lua | ||
table_type.lua |