Commit graph

182 commits

Author SHA1 Message Date
Joshua Warner
6b08f42d02
Fix more cases of when in guard 2025-01-11 11:05:34 -08:00
Joshua Warner
903b792fd3
Fix when in when guard 2025-01-11 11:05:33 -08:00
Joshua Warner
2bd03ef16b
Fix pnc apply in unary negate 2025-01-10 21:10:56 -08:00
Joshua Warner
13a70c060d
Preserve info about whether a given dbg stmt was pnc or not, at least for now 2025-01-10 21:10:55 -08:00
Sam Mohr
528d1d2b69
Merge pull request #7497 from smores56/new-interpolation-syntax
Move to new interpolation syntax
2025-01-10 15:25:12 -08:00
Sam Mohr
eb1b5ffa26
Move to new interpolation syntax 2025-01-10 10:29:20 -08:00
Joshua Warner
7acf9c5e5d
Fix zero-length dbg arg list 2025-01-09 20:25:20 -08:00
Joshua Warner
8deca25c5e
Make sure to add parens if a PncApply dbg stmt becomes a space-separated Apply 2025-01-09 19:22:09 -08:00
Joshua Warner
0438c17503
Fix pnc args multiine in the presence of final comments 2025-01-08 21:25:39 -08:00
Sam Mohr
2150ee2219
Remove Task from Roc 2025-01-08 17:00:40 -08:00
Anthony Bullard
9b9b6d39f3
Fix clippy 2025-01-08 15:37:03 -06:00
Anthony Bullard
3a6225c354
Fix builtin formatting 2025-01-08 15:20:04 -06:00
Anthony Bullard
898b3f55e5
Move PNC apply to separate Expr/Pattern variant 2025-01-08 14:47:49 -06:00
Luke Boswell
89ef225f5b
Merge pull request #7468 from joshuawarner32/fuzzing-bugs-9
And... more fuzzing bugs!
2025-01-06 14:28:18 +11:00
Joshua Warner
8955f3e124
Fix indentation of record updates and calculation of return indentation 2025-01-05 15:10:12 -08:00
Anthony Bullard
a24fe430b4
Support '??' syntax for optional record fields 2025-01-04 14:26:20 -06:00
Anthony Bullard
8690a02d8f
Fix unstable formatting with nested applies 2025-01-02 17:59:12 -06:00
Anthony Bullard
2bb3b84ce7
Clippy 2025-01-02 17:59:12 -06:00
Anthony Bullard
8c77a54b4f
Address review feedback 2025-01-02 17:59:09 -06:00
Anthony Bullard
3b0db07fa1
PNC for Patterns, stabilize formatting 2025-01-02 17:57:15 -06:00
Anthony Bullard
bac165fd99
Make better named arg for fmt_apply using PNC 2025-01-02 16:49:08 -06:00
Anthony Bullard
af39ce57fb
Parens and Commas application syntax 2025-01-02 16:49:08 -06:00
Sam Mohr
cbcbfd3265
Remove backpassing 2025-01-01 17:44:56 -08:00
Joshua Warner
f721569421
Force newline for multi-line closures where the inner element is not outdentable 2025-01-01 14:59:21 -05:00
Joshua Warner
14d6f7c92a
Fix spaces in the middle of where branches 2025-01-01 14:59:21 -05:00
Joshua Warner
37e7caa1aa
Parenthesize closures in unary ops and pre-emptively disallow multi-backpassing in such closures, to avoid formatter trouble later 2025-01-01 12:38:28 -05:00
Joshua Warner
14b18f4213
Properly implement lifting for if and when 2025-01-01 12:04:06 -05:00
Joshua Warner
2918e26b38
Fix unary op parens in the case of closure 2025-01-01 11:47:46 -05:00
Luke Boswell
f7dbf850b9
Merge pull request #7409 from joshuawarner32/fuzzing-bugs-5
Fix another batch of parsing/formatting bugs found in fuzzing
2024-12-28 17:36:03 +11:00
Anthony Bullard
c70ceb4f98
Issue 7089: ?? operator 2024-12-26 10:53:47 -06:00
Joshua Warner
2464ce6856
Fix formatting issue with closures hiding in unary ops 2024-12-24 15:05:20 -05:00
Joshua Warner
787fec6b3f
Fix issue with multibackpassing in closure in binop 2024-12-23 14:34:38 -05:00
Joshua Warner
bab5e65480
Fix case of expr in binop that ends in closure, when it doesn't start on a new line 2024-12-21 20:14:18 -05:00
Joshua Warner
769baa9f63
Add indent call after when's if 2024-12-21 20:14:18 -05:00
Anthony Bullard
66529503ff
Fix snake case formatting 2024-12-17 05:40:42 -06:00
Joshua Warner
c4077dc971
Fix when branches to use lifting as well 2024-12-16 18:23:41 -08:00
Joshua Warner
887a43ff55
Fix comments in str interpolations 2024-12-16 18:23:37 -08:00
Joshua Warner
cc611533e0
Fix formatting of literals in closure args 2024-12-15 18:33:57 -08:00
Joshua Warner
6695af474e
Handle comments after return value 2024-12-15 18:33:56 -08:00
Joshua Warner
7b9aa59d64
Fix outdenting in closures 2024-12-15 18:33:53 -08:00
Joshua Warner
307b0d9ea9
Fix closure indentation and indented-else handling in niche pattern case 2024-12-15 18:33:52 -08:00
Joshua Warner
24ba9dbeba
Add parens around implements identifier to be conservative 2024-12-15 18:33:52 -08:00
Joshua Warner
8f2a10d52d
Lift spaces in backpassing 2024-12-15 18:33:51 -08:00
Joshua Warner
abde9e86b1
lift spaces in backpassing (fixes #7364) 2024-12-15 18:33:48 -08:00
Joshua Warner
2389040b39
Fix return backpassing case 2024-12-13 13:45:12 -08:00
Joshua Warner
02e07f95e7
Fix when indent in the presence of weird multiline patterns 2024-12-13 13:45:12 -08:00
Joshua Warner
5a6e0f546b
Generalize RecordAccess special-cases to include TupleAccess 2024-12-13 13:45:10 -08:00
Joshua Warner
d66f51db7b
Don't mix spaces before/after the field separator 2024-12-13 13:45:10 -08:00
Joshua Warner
2857833c35
Normalize return's 'after' 2024-12-13 13:45:10 -08:00
Joshua Warner
17849ca556
Fully normalize in expr record-like things, during formatting 2024-12-13 13:45:10 -08:00