1
0
Commit Graph

46 Commits

Author SHA1 Message Date
b0004db70c Minoir changes 2017-12-11 11:04:11 +01:00
88fa144c9e Fixed alignment issue for certain tables. 2017-11-18 13:23:43 +01:00
856d9df690 Cdata is now being tested against again, and some unicode stuff has been implemented. 2017-10-22 14:26:19 +02:00
a13c6351c1 Updated to setEnviroment calls in the testfiles to setEnvironment. 2017-10-22 11:59:55 +02:00
7dca1a697d Misc. 2017-10-09 13:05:28 +02:00
1781f8267a Merged cdata into master, and added some tests. 2017-08-07 10:39:45 +02:00
f332d6bf95 Major restructure in how tables are formatted. Options max_depth and recursion has been deprecated. 2017-07-25 17:49:06 +02:00
aa4ca9d67d Depricated short_builtins. 2017-07-24 19:35:19 +02:00
6d56713627 Implemented tabular style, for appropriate tables. Turned out to be more robust than I anticipated. 2017-07-22 16:36:32 +02:00
e0552daf91 Chunks are now formatted correctly. 2017-07-22 15:09:20 +02:00
1f20c29f68 Moved strings and their tests to new file. 2017-07-20 19:20:29 +02:00
33fb88fdd7 What is an is not an identifier is now automatically determined by is_identifier. 2017-07-20 18:58:06 +02:00
93beb4bd1e Finally implemented column alignment
It's currently a bit limited in scope, but looks great when active.
2017-07-20 12:01:46 +02:00
00d3f653a8 Improved loading of pretty. 2017-07-17 13:36:56 +02:00
6a677a65b2 Found and fixed issue occuring when function was loaded from a module pretty couldn't find. 2017-07-15 23:29:51 +02:00
6bd797c75e Improved sorting. 2017-06-25 13:16:34 +02:00
3d6c7dbfbc Updated README and fixed some test issues with lua 5.1 2017-06-25 12:18:24 +02:00
965e99abcc Added new tests for various unicode issues, mostly aligment and sorting. 2017-06-15 19:03:42 +02:00
5c7354e40f Made four spaces the default indent, instead of a tab character. 2017-06-09 17:24:05 +02:00
f528a7853f Moved sorting to own file, and added very large tests. 2017-06-05 20:38:44 +02:00
df232b144b Moved cdata tests to own file, and began work on string analysis. 2017-05-01 15:41:36 +02:00
0f26759ee2 Moved to doing seperator fixing just before returning from pretty. 2017-04-14 14:01:01 +02:00
f29004fe17 Improved resilience of library. 2017-04-14 13:24:29 +02:00
87b12e15b2 Fixed issues with analýse_structure.lua
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.
2017-04-14 13:06:43 +02:00
155c877987 Alternative process for determining short tables
This one is based on the representative width of the table. Not only
does this produce better results, but it's also more futureproof.
2017-04-14 12:19:23 +02:00
6ac8a2d6de Added more tests. 2017-04-12 15:15:03 +02:00
5a3e9d0e27 Improved sorting of tables. 2017-04-05 13:10:23 +02:00
0a79a8a77a Experimentations with pointer types. 2017-04-05 12:11:41 +02:00
ffbbfef499 Beginning work on more advanced cdata inspection. 2017-04-04 16:19:22 +02:00
ae73cc9b64 Reworked the number formatting system. Will now attempt to generate the shortest possible representation of the given number. 2017-04-03 20:01:36 +02:00
8f956bf444 Moved function formatting into own file. 2017-04-03 11:55:49 +02:00
4e3d5e2bf9 Changed to use imported TestSuite.lua, instead of embedded in the tests/ folder. 2017-04-03 11:12:19 +02:00
d848c96fb1 Very minor work on recursion. 2017-01-16 16:22:46 +01:00
cad8258a6f Added number.lua file, to allow more informative representations of numbers. 2017-01-16 16:10:10 +01:00
b405afeae8 Improved compatibility with PUC Lua 5.1 - 5.3 2017-01-05 15:50:44 +01:00
616c9f7a6b Improved alignment of functions. 2017-01-05 14:28:31 +01:00
877c954b78 Expanded library.lua to include all documented standard library functions. 2016-12-31 16:50:12 +01:00
061ffb2d9e Extended library.lua, and added improved printing of doc string. 2016-12-30 12:02:46 +01:00
d75507da40 Added library function over builtin functions. (Currently only math library covered.) 2016-12-29 18:40:30 +01:00
038a88eca5 Functions defined within a string will now be shown fully. 2016-12-29 16:54:31 +01:00
b27d307da0 Slight improvements to function formatting. 2016-12-29 16:17:58 +01:00
55265378f9 Attempting more comprehensive coverage of types, including threads/coroutines and functions. 2016-12-29 15:33:43 +01:00
fd8d800cf0 Minor restructure. 2016-12-29 12:11:48 +01:00
b3d12f8659 Restructure to allow more flexible formatting of key-value pairs. Hopefully this allows merging sequence and map. 2016-12-29 05:34:44 +01:00
cf7ed5b289 That sure is a nice status bar. 2016-12-29 01:06:40 +01:00
476a2de8f7 This is some pretty-print library. 2016-12-29 00:51:07 +01:00