Commit graph

51 commits

Author SHA1 Message Date
Folkert
d22acb521e use record for PrecedenceConflict 2021-03-20 15:07:15 +01:00
Folkert
0be4704f94 checkpoint working parse tests 2021-03-13 15:49:07 +01:00
Folkert
214112d751 Revert "store is_negative for all number literals in the parse ast"
This reverts commit 182fd5201d.
2021-03-12 16:43:52 +01:00
Folkert
182fd5201d store is_negative for all number literals in the parse ast 2021-03-12 16:11:46 +01:00
Folkert
3304f54ca8 format backpassing 2021-03-06 16:34:13 +01:00
Folkert
e2d08b8f78 make backpassing an expr 2021-03-06 16:05:18 +01:00
Folkert
e395d18e16 bunch of stuff 2021-02-28 23:36:27 +01:00
Folkert
4eea0aff7a refactor parse AST to allow multiple if branches 2021-02-25 14:34:58 +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
3d0a5aa89a format multline litera list with trailing comma 2020-12-28 18:37:41 +01:00
Sébastien Besnier
83aa5c1642 add final_comments to List's AST 2020-12-28 18:17:56 +01:00
Sébastien Besnier
2f3d74e8bd fix empty record with only comments in it 2020-12-28 17:54:35 +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
c4bc98a81f remove fmt_condition_spaces in favor of fmt_comments_only 2020-11-15 10:36:50 +01:00
Sébastien Besnier
25192fca10 make fmt_comments_only more general 2020-11-15 10:26:14 +01:00
Sébastien Besnier
bc203371be refactor fmt_final_comments to be more generic 2020-11-15 09:57:29 +01:00
Sébastien Besnier
f647e8fcf0 clippy.... you sometimes are annoying! 2020-11-14 20:08:55 +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
ec975aac93 cargo fmt 2020-11-13 19:56:13 +01:00
Sébastien Besnier
adc1493e76 appease clippy 2020-11-13 19:36:52 +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
Sébastien Besnier
6ad1bb233a add TrailingComma to Record & little formatter refactor 2020-11-13 19:01:46 +01:00
Folkert
ee23e5979d pass argument by reference 2020-10-29 00:35:10 +01:00
Folkert
9f4b284f14 from vec to slice 2020-10-29 00:12:59 +01:00
Richard Feldman
7682e09b0a Fix some fmt stuff 2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Folkert
6bc657616d clean up comments 2020-07-12 00:37:05 +02:00
Folkert
d7b2dc7a3b fix test failures caused by def reordering 2020-07-11 02:01:23 +02:00
Folkert
46639c5081 cleanup and comments 2020-07-11 01:51:38 +02:00
Folkert
ba38d4ec14 cleanup 2020-07-10 23:54:00 +02:00
Folkert
d6bdb45c82 Back in working order 2020-07-10 23:54:00 +02:00
Folkert
36ccafd8ab 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
Folkert
9d67b11c0d pretty error messages for integers 2020-07-07 22:10:23 +02:00
Richard Feldman
3dac73d8d0 Parse doc comments 2020-05-23 22:03:21 -04:00
Richard Feldman
4d8cbc4811 Drop obsolete contains_newline method 2020-05-23 21:41:11 -04:00
Richard Feldman
101dc80ae5 Move parse::operator into module::operator 2020-05-01 21:58:53 -04:00
Chad Stearns
ffdce07d29 fixed formatting error for if statement formatting 2020-04-21 23:39:22 -04:00
Chad Stearns
c3d296a026 fixed formatting error for when formatting 2020-04-21 23:38:04 -04:00
Chad Stearns
ac85f86b9e Removed panics 2020-04-21 23:37:00 -04:00
Chad Stearns
3f7d1cf33a Merge branch 'trunk' of github.com:rtfeldman/roc into format-precedence-conflict 2020-04-13 22:30:34 -04:00
Folkert
8e8f93955e cleanup 2020-03-31 23:54:14 +02:00
Richard Feldman
3ecbe0325c Plain number literals (e.g. 5) are now Num * 2020-03-10 22:27:13 -04:00
Chad Stearns
3fc19e90e4 Precedence conflict tests 2020-03-08 16:26:17 -04:00