Commit graph

635 commits

Author SHA1 Message Date
Joshua Warner
05033ac40b
allow arrow to be an expr terminator in when guards 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
Sam Mohr
82b7279485
Fix formatting 2025-01-08 17:04:28 -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
898b3f55e5
Move PNC apply to separate Expr/Pattern variant 2025-01-08 14:47:49 -06:00
Sam Mohr
7a2f8bfa71
Merge branch 'main' into auto-snake-case 2025-01-07 13:18:41 -08:00
Sam Mohr
f524d35114
Fix module formatting 2025-01-05 21:04:58 -08: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
090473434d
Move backtracking for implements to specific spaces case that it's actually needed for, to avoid excess parsing work in extreme cases 2025-01-05 15:10:13 -08:00
Joshua Warner
6edfc0aa90
Fix double-wrapping of spaces before implements opaque keyword by making them distinct 2025-01-05 15:10:13 -08:00
Anthony Bullard
3295f80c30
Address feedback 2025-01-04 17:01:12 -06:00
Anthony Bullard
a7321e086a
Remove println 2025-01-04 14:35:07 -06:00
Anthony Bullard
a24fe430b4
Support '??' syntax for optional record fields 2025-01-04 14:26:20 -06:00
Anthony Bullard
a8dd0b8805
Move comment to correct location and make line comment 2025-01-02 17:59:32 -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
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
ea7d856e16
fixup type ann 2025-01-01 14:59:20 -05:00
Joshua Warner
7d91b01c5a
Fix where clauses in tuple types with trailing commas 2025-01-01 14:59:11 -05:00
Joshua Warner
9ff1b630a8
Fix accidental NoProgress return in if, to avoid exponential parsing issue 2025-01-01 12:40:54 -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
bf3fae4827
Fix disappearing spaces around implements keyword 2025-01-01 11:41:17 -05:00
Joshua Warner
d9ad34592c
Fix indentation of single-line ifs 2025-01-01 10:47:16 -05:00
Joshua Warner
4da6bb0be6
Fix weird indentation issue with indented else 2025-01-01 10:03:05 -05:00
Joshua Warner
835c246c56
Fix formatting bug with multline function type alias 2024-12-31 19:52:23 -05:00
Sam Mohr
0e2f16887a
Merge branch 'main' into fuzzing-bugs-6 2024-12-30 15:21:31 -05:00
Luke Boswell
44c630037e
clippy 2024-12-30 10:34:54 +11:00
Joshua Warner
3a7265baed
More impls for to_node 2024-12-28 22:31:25 -05:00
Joshua Warner
59fe0f06ea
Make sure to use keyword rather than word for parsing keywords 2024-12-28 22:29:45 -05:00
Joshua Warner
9e6c249dca
Disallow any keyword followed by an exclaimation mark 2024-12-28 22:29:45 -05:00
Joshua Warner
0acd59b4d6
Treat crash keyword uniformly 2024-12-28 22:29:42 -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
9d3f232794
Switch to something that won't trigger the panic detector 2024-12-25 09:33:19 -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
9499dcec4b
Disallow implements even with spaces around it 2024-12-23 14:34:41 -05:00
Joshua Warner
ad1e3369c5
Disallow expect! as an identifier 2024-12-21 20:14:18 -05:00
Joshua Warner
887a43ff55
Fix comments in str interpolations 2024-12-16 18:23:37 -08:00
Joshua Warner
4e3df6bde2
Fix normalization of strings with overflowing unicode 2024-12-15 18:33:56 -08:00
Joshua Warner
96c5dcb651
Relax indentation parsing inside parens, lists, and records 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
307b0d9ea9
Fix closure indentation and indented-else handling in niche pattern case 2024-12-15 18:33:52 -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