Joshua Warner
|
0acd59b4d6
|
Treat crash keyword uniformly
|
2024-12-28 22:29:42 -05:00 |
|
Joshua Warner
|
f4698e1517
|
Fix can panic with unbound type variables
|
2024-12-28 10:39:05 -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
|
9a76a8d2ce
|
Add snapshot test
|
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
|
8f0566a55f
|
Fix crash with doubly-nested parens in patterns
|
2024-12-24 14:08:52 -05:00 |
|
Joshua Warner
|
941c6c4fe3
|
Fix exponential behavior in parsing function types in tuples
|
2024-12-24 11:20:36 -05:00 |
|
Joshua Warner
|
f1f6cb4625
|
Add function type test
|
2024-12-23 14:34:42 -05:00 |
|
Joshua Warner
|
9499dcec4b
|
Disallow implements even with spaces around it
|
2024-12-23 14:34:41 -05:00 |
|
Joshua Warner
|
787fec6b3f
|
Fix issue with multibackpassing in closure in binop
|
2024-12-23 14:34:38 -05:00 |
|
Joshua Warner
|
512be85f9a
|
Fix parens around as in tag union
|
2024-12-21 20:14:19 -05:00 |
|
Joshua Warner
|
7ba5135602
|
Fix as in apply type
|
2024-12-21 20:14:19 -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 |
|
Joshua Warner
|
ad1e3369c5
|
Disallow expect! as an identifier
|
2024-12-21 20:14:18 -05:00 |
|
Joshua Warner
|
249125297e
|
Add missing indent call
|
2024-12-21 20:14:15 -05:00 |
|
Joshua Warner
|
36d4d37e18
|
Fix panic check for parens_newlines_before_as
|
2024-12-16 18:32:25 -08:00 |
|
Joshua Warner
|
c4077dc971
|
Fix when branches to use lifting as well
|
2024-12-16 18:23:41 -08:00 |
|
Joshua Warner
|
e068ae6b5a
|
Fix nested as
|
2024-12-16 18:23:40 -08:00 |
|
Joshua Warner
|
887a43ff55
|
Fix comments in str interpolations
|
2024-12-16 18:23:37 -08:00 |
|
Joshua Warner
|
7b09b15dea
|
Fix formatting of body when pattern is multi-line
|
2024-12-15 18:33:58 -08:00 |
|
Joshua Warner
|
01dda78271
|
Add missing indent call
|
2024-12-15 18:33:58 -08:00 |
|
Joshua Warner
|
4a19926425
|
Relax implements handling in patterns
|
2024-12-15 18:33:58 -08:00 |
|
Joshua Warner
|
d6d396b887
|
Fix 'implements' variable in types
|
2024-12-15 18:33:57 -08:00 |
|
Joshua Warner
|
cc611533e0
|
Fix formatting of literals in closure args
|
2024-12-15 18:33:57 -08:00 |
|
Joshua Warner
|
61fb9e45fb
|
Fix handling of spaces in record types
|
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
|
4e3df6bde2
|
Fix normalization of strings with overflowing unicode
|
2024-12-15 18:33:56 -08:00 |
|
Joshua Warner
|
0d182fbd28
|
Handle multiline string at the start of a pattern
|
2024-12-15 18:33:56 -08:00 |
|
Joshua Warner
|
10e7e24184
|
Don't simplify backpassing record assignment
|
2024-12-15 18:33:56 -08:00 |
|
Joshua Warner
|
20aee5c37b
|
Force type headers to format just like Pattern::Apply
|
2024-12-15 18:33:55 -08:00 |
|
Joshua Warner
|
df16e1b633
|
Move spaces outside of parens
|
2024-12-15 18:33:55 -08:00 |
|
Joshua Warner
|
96c5dcb651
|
Relax indentation parsing inside parens, lists, and records
|
2024-12-15 18:33:54 -08:00 |
|
Joshua Warner
|
1b4f5bbb52
|
Move indent call to correct spot
|
2024-12-15 18:33:54 -08:00 |
|
Joshua Warner
|
11d8dd1335
|
Fixup error case
|
2024-12-15 18:33:54 -08:00 |
|
Joshua Warner
|
6ef87b3b9d
|
Graccefully handle overflowing unicode literals
|
2024-12-15 18:33:54 -08:00 |
|
Joshua Warner
|
f7baa878f2
|
Fix as indentation
|
2024-12-15 18:33:53 -08:00 |
|
Joshua Warner
|
7b9aa59d64
|
Fix outdenting in closures
|
2024-12-15 18:33:53 -08:00 |
|
Joshua Warner
|
54a0456c30
|
Fix double-as formatting
|
2024-12-15 18:33:52 -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
|
9f3f99c573
|
Format spaces in as annotation correctly
|
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
|
24dd11262e
|
Avoid patterns that may look like implements clauses without parens
|
2024-12-15 18:33:51 -08:00 |
|
Joshua Warner
|
8f2a10d52d
|
Lift spaces in backpassing
|
2024-12-15 18:33:51 -08:00 |
|
Joshua Warner
|
cccb4abc30
|
Ensure formatted multiline record patterns work
|
2024-12-15 18:33:51 -08:00 |
|
Joshua Warner
|
8b7ac512f8
|
Generalize fmt rules around multiline strs in pats
|
2024-12-15 18:33:50 -08:00 |
|
Joshua Warner
|
d52595738f
|
Add missing indent call in import
|
2024-12-15 18:33:50 -08:00 |
|
Joshua Warner
|
2dd4fe03f8
|
Correctly update newline and indent state in multiline strings
|
2024-12-15 18:33:50 -08:00 |
|
Joshua Warner
|
a15998872d
|
Also conservatively check for spaces at the beginning of the pattern
|
2024-12-15 18:33:50 -08:00 |
|
Joshua Warner
|
c54b01016e
|
Disallow eliding empty record destructure assignment if expr looks like an implements clause (fixes #7366)
|
2024-12-15 18:33:49 -08:00 |
|