1
0
Commit Graph

143 Commits

Author SHA1 Message Date
33daa3b8be Restructure and removal of some debug options. 2017-07-15 22:56:10 +02:00
69e5755c5f Include function names in embedded functions. 2017-07-15 22:11:16 +02:00
3c5db269d6 Lots of minor formatting fixes for embedded functions. 2017-07-15 21:58:27 +02:00
8005e75794 Figured out that even more tests require AST traversal. Now we insert ... instead of attempting to find them. 2017-07-15 21:25:32 +02:00
410978c4c4 Turned out that some of the tests require _very_ advanced capabilities.
These have been "removed".
2017-07-15 21:00:01 +02:00
3790f4e8a3 Embedded functions now use info.params instead of the one pulled from the defining string. 2017-07-15 20:51:05 +02:00
43581963d8 The function body search were too restrictive and ignored OOP-style functions and unicode named functions, resulting in a crash. This has been fixed. The error message for that specific error has been made for descriptive. 2017-07-15 20:43:25 +02:00
e5f53b9b63 The embed_loaded_funcs option has been removed, and 'short' loaded functions will automatically be embedded. 2017-07-15 20:10:49 +02:00
41b274146a Update README.md 2017-07-15 17:25:18 +00:00
fcbd5f84c6 Merge branch 'master' of gitfub.space:Jmaa/pretty 2017-07-15 19:21:57 +02:00
20bbe82b96 Improved readme. 2017-07-15 19:21:21 +02:00
346afd61c0 Major restructure for finding documentation and function source. Fixes some issues 2017-07-14 16:51:19 +02:00
575cc8918d Added License. 2017-07-03 07:29:45 +00: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
f4d6e301a1 The documentation for builtins will now be wrapped, to prevent extremely long lines. 2017-06-24 20:37:43 +02:00
9a6a5b4b51 Function formatting will now automatically pull documentation from a lua file, if it knows where to look. 2017-06-24 20:06:36 +02:00
3bb599e976 Updated test_function.lua to reflect the new design. The system also warns against using experimental and debug options. 2017-06-24 18:53:59 +02:00
4a41111d1e analyse_structure is not automatically called, if no info regarding a table could be found. 2017-06-24 18:36:01 +02:00
8d88f6195d analyse_structure can now extend a previously used info table. 2017-06-24 17:59:55 +02:00
72f1ba5dfd Fixed some issues where pretty would create new global variables. 2017-06-16 17:04:14 +02:00
965e99abcc Added new tests for various unicode issues, mostly aligment and sorting. 2017-06-15 19:03:42 +02:00
b37a02c850 Now avoids analysing tables deeper than max_depth. 2017-06-15 19:02:54 +02:00
288d9e4de8 Changed project priorities, and removed lots of redundant features from number.lua 2017-06-15 16:30:34 +02:00
2cc9301c58 Improved alignment of functions. 2017-06-11 13:53:06 +02:00
1bfd4abb96 Added is_uniform predicate to analyse_structure.lua. 2017-06-10 23:17:30 +02:00
5c7354e40f Made four spaces the default indent, instead of a tab character. 2017-06-09 17:24:05 +02:00
25b294ec5d Fixed typo in README.md 2017-06-09 17:14:55 +02:00
4e7be31964 Added option for disabling soft numbers. 2017-06-09 17:08:53 +02:00
153bf23a9f Some numbers very close to a short representation will now use that representation. 2017-06-09 16:57:21 +02:00
531967d13b Removed unused constants. 2017-06-09 16:25:44 +02:00
4e7a1a9839 Improved error handling in pretty. 2017-06-09 16:20:39 +02:00
08e659fc4a Created temporary stopgap for when __index throws errors. 2017-06-09 15:49:15 +02:00
4d3cf18797 Refactored analyse_structure, and improved the quality of gotten depths. 2017-06-06 00:24:24 +02:00
f0670897bd Added new debug option, to display the addresses of tables in comments. 2017-06-06 00:22:37 +02:00
39dad0dadb analyse_structure refactored to perform breath-first traversal. It also now keeps track of breath first depth of tables. 2017-06-06 00:02:34 +02:00
48ca04bcb8 Changed all function signatures to exclude the old options arguments.. 2017-06-05 23:24:38 +02:00
7005a080c0 Working on outphasing the options value. 2017-06-05 23:13:50 +02:00
192575ded8 String Builder is now an actual object, and can now be called to append. 2017-06-05 22:58:09 +02:00
97ced3a173 Merged format_map into format_table. 2017-06-05 22:47:07 +02:00
bf9c5a6749 Removed some old orphaned functions. 2017-06-05 22:35:47 +02:00
65c2acb447 Removed the possibility of the 'max' depth value, refactored format_table, and added lots of asserts in rest of pretty.lua 2017-06-05 22:34:23 +02:00
7ae38f1567 Small change to README.md 2017-06-05 22:08:33 +02:00
e98487fcae Added basic README.md 2017-06-05 21:49:23 +02:00
f528a7853f Moved sorting to own file, and added very large tests. 2017-06-05 20:38:44 +02:00
7ccb9e8123 Added vulgar_fraction function, and increased resilience. 2017-05-25 22:53:02 +02:00
5124189b4e Added to_bin function. 2017-05-01 16:23:57 +02:00
df232b144b Moved cdata tests to own file, and began work on string analysis. 2017-05-01 15:41:36 +02:00
0ab7942023 Integers should be preferred to 2^x 2017-04-30 22:40:24 +02:00
0f26759ee2 Moved to doing seperator fixing just before returning from pretty. 2017-04-14 14:01:01 +02:00