Joshua Warner
02b51bcd37
Fix formatting of applies in backpassing
2021-11-27 06:15:48 -08:00
Joshua Warner
32a8222a37
Add test for formatting package type in TypeAnnotation::Apply
2021-11-26 13:58:17 -08:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
Chadtech
5e2decf89a
Binops with parentheses keep their parentheses
2021-10-16 18:01:13 -04:00
Chadtech
56c36c51d7
Commented in many tests which apparently did not work in the past
2021-10-16 13:44:14 -04:00
Chadtech
2ca9dad156
Do not add parens around exprs if they are not needed in formatting
2021-10-16 13:30:32 -04:00
Anton-4
314503cf7f
fixed typos, added typos checking to CI
2021-06-05 20:02:54 +02:00
Folkert
2a0c5c669b
fiddling with the when
parser
2021-03-24 22:55:01 +01:00
Folkert
cba55734cb
clean up helpers
2021-03-12 03:41:01 +01:00
Folkert
4e4854ceaa
remove unneeded argument
2021-03-12 02:48:07 +01:00
Folkert
3e554cb21f
cleanup
2021-03-11 21:21:00 +01:00
Folkert
8ee99fa6be
fix up tests
2021-03-10 12:03:33 +01:00
Folkert
0ad975113c
fix Bag import in tests
2021-02-08 23:40:50 +01:00
Folkert
ca04411523
fix tests/more uniq removal
2021-02-07 22:50:33 +01:00
Folkert
d211ca7e61
WIP
2021-02-03 20:21:12 +01:00
Folkert
7b4378219e
defer empty record issues
2021-02-02 22:27:14 +01:00
Folkert
5ce8e3a9d6
make tests compile
2021-02-02 22:09:29 +01:00
rvcas
27cfd4d7ad
more test fixes
2021-01-04 15:18:49 -05:00
Sébastien Besnier
69c38e5bf7
add some commented tests -- it doesn't involve trialing commas too much...
2020-12-28 19:12:37 +01:00
Sébastien Besnier
965d151168
add tag union tests for trailing commas formatting
2020-12-28 18:57:45 +01:00
Sébastien Besnier
7692bd5671
add test... and fix missing final comments!
2020-12-28 18:41:48 +01:00
Sébastien Besnier
04d0711251
multiline tests update for trailing comma
...
This reverts commit 4dbde30c4f6584871d3e8c54fd89b3ee27a82b72.
2020-12-28 17:54:44 +01:00
Sébastien Besnier
2f3d74e8bd
fix empty record with only comments in it
2020-12-28 17:54:35 +01:00
rvcas
4987721154
feat(Num): rename Num.Int to Num.I64
2020-12-07 19:17:20 -05:00
Sébastien Besnier
f46841d63b
cargo fmt
2020-11-25 16:23:33 +01:00
Sébastien Besnier
94af5caa69
add some (directly passing!) tests
2020-11-25 16:12:10 +01:00
Sébastien Besnier
aa3ce94f86
fix formating newlines
2020-11-25 15:44:58 +01:00
Sébastien Besnier
7361f62902
format properly multiline type annotations
2020-11-25 15:15:32 +01:00
Sébastien Besnier
4ed8d3eb79
add failing test
2020-11-25 10:33:36 +01:00
Sébastien Besnier
d87b5bfd9f
add failing tests
2020-11-21 20:36:26 +01:00
Sébastien Besnier
c692319fb9
correctly format multiline record type annotation
2020-11-21 20:36:26 +01:00
Sébastien Besnier
f9666d6efe
better code comments
2020-11-21 20:36:26 +01:00
Sébastien Besnier
1d44f7fef8
force comments to start with a space
2020-11-15 10:45:51 +01:00
Sébastien Besnier
6be94c5f29
add some tests.... and fix some bugs!
2020-11-14 18:51:43 +01:00
Sébastien Besnier
2000948765
format the final comments in records
2020-11-14 18:39:46 +01:00
Sébastien Besnier
58acc59b01
correctly parse trailing commas in record
2020-11-13 19:02:26 +01:00
Sébastien Besnier
7ec161c415
add trailing comma in formatter for records
2020-11-13 19:01:46 +01:00
Richard Feldman
453fc0e27c
REVERT THIS! Temporarily break block strings.
...
Also disable some tests because trimming inputs
revealed some bugs I don't want to fix in this PR!
2020-08-31 23:22:10 -04:00
Richard Feldman
7682e09b0a
Fix some fmt stuff
2020-08-31 23:13:50 -04:00
Richard Feldman
5b27e10095
Reproduce empty string parsing bug
2020-08-31 23:13:50 -04:00
Richard Feldman
9f9ce327d4
Lazily validate that input bytes are valid UTF-8
2020-07-27 01:10:04 -04:00
Folkert
ba38d4ec14
cleanup
2020-07-10 23:54:00 +02:00
Folkert
d61b8c88a1
implement Formattable for Pattern
2020-07-10 23:54:00 +02:00
Folkert
e18d3bbfe4
use Parens type in pattern formatting
2020-07-10 23:54:00 +02:00
Folkert
672b67d527
initial version of annotation formatting
2020-07-09 17:41:21 +02:00
Richard Feldman
20648958eb
Revise some future fmt tests
2020-05-03 08:50:21 -04:00
Chad Stearns
5ca1174f78
Another when condition test
2020-04-21 23:49:26 -04:00
Chad Stearns
8e86146963
Lots of new tests. Lots of commented-in tests. Tests that had a lot of assertions broken out into separate tests
2020-04-21 23:40:08 -04:00
Chad Stearns
c3d296a026
fixed formatting error for when formatting
2020-04-21 23:38:04 -04:00