Richard Feldman
|
b51c8b0ba4
|
Simplify some branch formatting logic
|
2022-07-13 23:16:08 -04:00 |
|
Richard Feldman
|
fa877e4184
|
Revert "Special-case records, lists, functions in def fmt"
This reverts commit c0b4ceea9b1d817c923eb82fa3ff7a36db90199f.
|
2022-07-13 22:32:42 -04:00 |
|
Richard Feldman
|
2be68189b4
|
Special-case records, lists, functions in def fmt
|
2022-07-13 22:32:42 -04:00 |
|
Richard Feldman
|
8178f22ce4
|
Always put a newline after a binop def body
|
2022-07-13 22:32:41 -04:00 |
|
Richard Feldman
|
9e19baef59
|
Don't indent next expr after multiline binop
|
2022-07-13 22:05:04 -04:00 |
|
Richard Feldman
|
28e0a9e382
|
Don't indent multiple patterns
|
2022-07-13 21:50:30 -04:00 |
|
Richard Feldman
|
f066ee12dc
|
Don't indent multiline infix operators
|
2022-07-13 21:40:28 -04:00 |
|
Richard Feldman
|
434bcd08fd
|
s/ends_in_newline/ends_with_newline/g
|
2022-07-11 13:15:22 -04:00 |
|
Richard Feldman
|
b08d6a0446
|
Fix edge case with comments and branches
|
2022-07-11 13:14:35 -04:00 |
|
Richard Feldman
|
b9a314dcd9
|
Update formatter tests
|
2022-07-11 13:14:35 -04:00 |
|
Richard Feldman
|
4530d9ebd3
|
Format multiline branches with newlines before
|
2022-07-11 13:12:34 -04:00 |
|
Folkert
|
a0fdb0b902
|
Merge remote-tracking branch 'origin/trunk' into remove-parse-def
|
2022-07-10 17:54:48 +02:00 |
|
Richard Feldman
|
57260d53f9
|
Allow single-line comments in multiline annotations
|
2022-07-09 23:06:45 -04:00 |
|
Folkert
|
3dee90ced8
|
remove parse::ast::Def
|
2022-07-10 01:10:37 +02:00 |
|
Folkert de Vries
|
8c5f798f4e
|
Merge pull request #3454 from rtfeldman/fix-opaque-formatting
Fix unstable formatting of opaque tag unions
|
2022-07-08 22:22:00 +02:00 |
|
Richard Feldman
|
5f0e3c72c5
|
Fix unstable formatting on opaque unions
|
2022-07-08 15:29:08 -04:00 |
|
Richard Feldman
|
1d07d9efa1
|
Reproduce unstable formatting on opaque unions
|
2022-07-08 15:17:15 -04:00 |
|
Richard Feldman
|
dbbbacc32a
|
Fix comment between multiline annotation args
|
2022-07-08 14:31:31 -04:00 |
|
Richard Feldman
|
daa044390a
|
Merge pull request #3430 from rtfeldman/format-defs-fix
format defs and ignore the spaces inbetween
|
2022-07-06 20:31:51 -04:00 |
|
Richard Feldman
|
42a110dc6b
|
clippy
|
2022-07-06 16:51:25 -04:00 |
|
Richard Feldman
|
82c81a7039
|
Allow comments after the -> in a when
|
2022-07-06 16:48:28 -04:00 |
|
Richard Feldman
|
3c9ad5b24d
|
Drop obsolete test
|
2022-07-06 16:42:54 -04:00 |
|
Richard Feldman
|
15932d7d47
|
Fix comments in when branches
|
2022-07-06 16:42:54 -04:00 |
|
Richard Feldman
|
18edf5f0d6
|
Fix comments in when conditionals
|
2022-07-06 16:42:53 -04:00 |
|
Richard Feldman
|
f01d6a55f7
|
Fix multiline_binop_conditional_with_comments
|
2022-07-06 16:42:53 -04:00 |
|
Richard Feldman
|
da8a1fb81f
|
Fix starts_with_newline logic
|
2022-07-06 16:42:53 -04:00 |
|
Richard Feldman
|
824de8bcc9
|
Rename with_inline_comment to has_line_comment_before
|
2022-07-06 16:42:53 -04:00 |
|
Richard Feldman
|
7eba683355
|
s/bin_op/binop/g
This is the term we use elsewhere in the compiler
|
2022-07-06 16:42:53 -04:00 |
|
Folkert
|
1eee494557
|
format defs and ignore the spaces inbetween
|
2022-07-06 22:02:32 +02:00 |
|
Richard Feldman
|
d2476099a5
|
Add some tests for trailing commas in comments
|
2022-07-06 15:17:19 -04:00 |
|
Richard Feldman
|
9df5802848
|
Update formatter tests
|
2022-07-06 15:10:17 -04:00 |
|
Richard Feldman
|
4c5eb9b796
|
Ensure comments begin with space or newline
|
2022-07-06 15:10:17 -04:00 |
|
Richard Feldman
|
bd194af67c
|
Fix edge case in ensure_ends_in_newline
|
2022-07-06 15:10:17 -04:00 |
|
Richard Feldman
|
3195e0cff3
|
Improve a debug_assert! message
|
2022-07-06 15:10:17 -04:00 |
|
Richard Feldman
|
ca0b40cd9d
|
Use a pattern match over ==
|
2022-07-06 15:10:16 -04:00 |
|
Richard Feldman
|
267bae5dec
|
Don't add more newlines than necessary
|
2022-07-06 15:10:16 -04:00 |
|
Richard Feldman
|
87b7a9ba3b
|
Update formatter tests
|
2022-07-06 14:01:53 -04:00 |
|
Richard Feldman
|
01434c8e28
|
Don't over-indent type alias defs
|
2022-07-06 13:55:45 -04:00 |
|
Richard Feldman
|
23a02a7a75
|
Don't over-indent module header collections
|
2022-07-06 13:46:11 -04:00 |
|
Richard Feldman
|
b9532cadaa
|
clippy
|
2022-07-03 22:47:41 -04:00 |
|
Richard Feldman
|
cab096b4e1
|
Don't print extra newline in multiline | patterns
|
2022-07-03 22:43:21 -04:00 |
|
Richard Feldman
|
d1ba89f97f
|
Fix an extraneous newline in formatting
|
2022-07-03 22:38:26 -04:00 |
|
Richard Feldman
|
244a501433
|
Indent for multiline | patterns
|
2022-07-03 22:17:13 -04:00 |
|
Richard Feldman
|
872efa9724
|
Put a space before comments in patterns
|
2022-07-03 21:59:00 -04:00 |
|
Richard Feldman
|
3e2f581db4
|
Reproduce formatter bug
|
2022-07-03 21:58:59 -04:00 |
|
Richard Feldman
|
e4d09e9e59
|
Drop obsolete comment
|
2022-07-03 21:57:56 -04:00 |
|
Anton-4
|
eee85fa45d
|
moved all crates into seperate folder + related path fixes
|
2022-07-01 17:37:43 +02:00 |
|