Sam Mohr
4abe199747
Fix question statements
2024-12-06 11:01:29 -08:00
Mattthew Heath
3aeab753b4
tidying
2024-12-06 18:44:10 +00:00
Mattthew Heath
8c2cdeb332
aligns at 16 finally
2024-12-06 18:35:49 +00:00
Mattthew Heath
addd826511
Revert "aligns as 8"
...
This reverts commit 82a70c79b8
.
2024-12-06 17:47:08 +00:00
Mattthew Heath
82a70c79b8
aligns as 8
2024-12-06 17:33:12 +00:00
Mattthew Heath
b33f1b0981
aligns as usize
2024-12-06 17:16:24 +00:00
Joshua Warner
e2d839c050
Remove commented code
2024-12-05 18:56:18 -08:00
Joshua Warner
82bf4b19d8
Fix up LowLevelTry after rebase
2024-12-05 18:54:26 -08:00
Joshua Warner
0855ffd9fb
Feedback: Add comment about not updating fuzz's Cargo.toml
2024-12-05 18:54:25 -08:00
Joshua Warner
6ac6a7c19a
Feedback: dry out term, make fmt_spaces_with_newline_mode more readable, explicitly implement all the variants in ann_lift_spaces
2024-12-05 18:54:25 -08:00
Joshua Warner
8642f8500e
Switch to conservatively checking if the annotation/alias ends in a space before merging
2024-12-05 18:54:24 -08:00
Joshua Warner
e22e37a9c1
Remove accideental dbg!()
2024-12-05 18:54:23 -08:00
Joshua Warner
f833ac9a6b
Fix formatting of Apply nodes with zero args, which the repl generates
2024-12-05 18:54:23 -08:00
Joshua Warner
9a9b96dc69
Fix clippy
2024-12-05 18:54:22 -08:00
Joshua Warner
e620e1c462
Fix warnings
2024-12-05 18:54:22 -08:00
Joshua Warner
45424e27fb
Fixup string dollar handling
2024-12-05 18:54:21 -08:00
Joshua Warner
dfcb7a0c3b
Ensure formatted multiline patterns can be parsed
2024-12-05 18:54:21 -08:00
Joshua Warner
78cda703d9
Fixup negative allowance in calls
2024-12-05 18:54:20 -08:00
Joshua Warner
1be2075e7f
Make sure ext's can't slurp surrounding apply args
2024-12-05 18:54:19 -08:00
Joshua Warner
fc74b67d86
Flesh out expr_lift_spaces, in particular handling DbgStmt properly
2024-12-05 18:54:19 -08:00
Joshua Warner
5c387857ff
Indented seq parsing for imports
2024-12-05 18:54:18 -08:00
Joshua Warner
2163b28390
Fix formatting of newlines in parens in a function type
2024-12-05 18:54:18 -08:00
Joshua Warner
cae47cf2a6
Fix expr_lift_spaces of Closure
2024-12-05 18:54:17 -08:00
Joshua Warner
19f8cc532a
Disallow conditionals after neg/not
2024-12-05 18:54:17 -08:00
Joshua Warner
7eb9909ac5
Make parsing of conditionals consistent between stmts/exprs
2024-12-05 18:54:16 -08:00
Joshua Warner
e47d7924d3
Fix parsing crash with dollar escapes
2024-12-05 18:54:15 -08:00
Joshua Warner
89a64fed74
Don't do empty record destructure elision when the body is itself Defs
2024-12-05 18:54:15 -08:00
Joshua Warner
cabe67f88d
Only allow indented else if there's a newline after the else
2024-12-05 18:54:14 -08:00
Joshua Warner
48c941d542
Add lifting for ext values in types
2024-12-05 18:54:14 -08:00
Joshua Warner
64164eb1f4
Make sure patterns continue to parse as such
2024-12-05 18:54:13 -08:00
Joshua Warner
ea1ecb9e68
Fix lifting of backpassing
2024-12-05 18:54:12 -08:00
Joshua Warner
2098ccd137
Fix multiline pattern in body, which may only apply to multiline strings
2024-12-05 18:54:12 -08:00
Joshua Warner
ab4c96bc81
Fix indent call in when fmt
2024-12-05 18:54:11 -08:00
Joshua Warner
fa4d3e79ec
Fix ability with no newline after it
2024-12-05 18:54:11 -08:00
Joshua Warner
b06afa7bb9
Fix purity removal
2024-12-05 18:54:10 -08:00
Joshua Warner
8c25c9aaf7
Fix newline after dbg formatting
2024-12-05 18:54:10 -08:00
Joshua Warner
4a0dce714b
Unify if/when condition formatting
2024-12-05 18:54:09 -08:00
Joshua Warner
cfec120b13
Fix indent calls in optional fields
2024-12-05 18:54:08 -08:00
Joshua Warner
84b3969648
Adjust parens around patterns in annotations
2024-12-05 18:54:08 -08:00
Joshua Warner
b79d387b46
Fix fuzz Cargo.toml regression
2024-12-05 18:54:07 -08:00
Joshua Warner
edcdd99f59
Record updates
2024-12-05 18:54:07 -08:00
Joshua Warner
b9862b47dc
Several fixes found in fuzzing
2024-12-05 18:54:03 -08:00
Luke Boswell
e9caada3f1
Merge pull request #7249 from wizard7377/int_overflow
...
Fixed Integer casting
2024-12-06 07:12:49 +11:00
Luke Boswell
c37bd9a1de
Merge branch 'main' into int_overflow
2024-12-05 21:49:55 +11:00
Sam Mohr
9392742d17
Update tests
2024-12-05 02:33:20 -08:00
Sam Mohr
8c81742abe
Simplify category formatting for try concepts
2024-12-05 02:30:33 -08:00
Sam Mohr
de626102c8
Use new try impl for ? operator
2024-12-05 02:13:13 -08:00
Sam Mohr
193c23bac8
Merge pull request #7296 from smores56/proper-try-keyword
...
Proper `try` keyword
2024-12-05 01:38:22 -08:00
JRI98
90f517712a
Remove unused code
2024-12-05 09:18:52 +00:00
Joshua Warner
120e9be550
Move MigrationFlags from an argument on format* to a field on Buf
...
That has a few advantages:
* We avoid a bunch of extra parameter-passing "noise", since the vast majority of formatting code doesn't need to care about this setting beyond just passing it to nested format calls.
* It aligns really well with the "global" nature of this setting, and makes it impossible to have bugs where e.g. one callsite forgets to pass the correct value to it's children - which would lead to parts of the tree not being migrated. If this is truly a global setting on Buf, that simply can't happen.
2024-12-04 17:57:31 -08:00