Joshua Warner
6d22c4dd7c
Several migration fixes and make some zig parser improvements based on migrated code in the wild ( #7716 )
2025-04-08 13:46:44 +02:00
Joshua Warner
109cb93b20
Implement a migration to new braces syntax and add migrate tests
2025-02-16 20:37:28 -08:00
Joshua Warner
0107d6b9c4
Suppress TrySuffix movement around PncApply unless --migrate is passed
...
This is currently causing a bunch of fuzzing noise in main. Also added a comment to clarify this behavior is intended to be short-lived.
2025-01-29 21:37:39 -08:00
Anthony Bullard
eb9d1bcf09
Format apply funcs with try suffix correctly
2025-01-28 21:00:30 -06:00
Sam Mohr
631e59ce06
Upgrade hosted header in the style module header
2025-01-26 15:07:57 -08:00
Joshua Warner
20d092ea48
Remove indented-else syntax from the formatter
...
This is step 1 in removing the syntax all together. The formatter will now seemlessly migrate everyone to the usual if/then/else syntax. After everyone has had a chance to upgrade, we can then remove this from the parser (in a future PR).
2025-01-20 19:18:37 -08:00
Luke Boswell
5981e4354c
Merge pull request #7510 from joshuawarner32/pnc-fuzzing-fixes-4
...
Fix yet more fuzzing bugs
2025-01-20 09:26:52 +11:00
Luke Boswell
c9b38d839f
fmt
2025-01-20 08:25:53 +11:00
Sam Mohr
a292e070d4
Prefer and
and or
for boolean operators
2025-01-17 16:15:31 -08:00
Joshua Warner
d42af0b763
Expand handling of guard_needs_parens
2025-01-16 21:32:37 -08:00
Joshua Warner
7f1b3449a6
Correct handling of binop with SpaceAfter in a Body def
2025-01-16 21:32:06 -08:00
Joshua Warner
ede015517a
Unify Alias and Annotation formatting
2025-01-16 21:21:02 -08:00
Joshua Warner
6127bd2d26
Move unit assignment handling to lifting phase
2025-01-16 21:19:21 -08:00
Joshua Warner
ff230c4261
Make nodes more strongly normalizing to fix confusion with outdentability
2025-01-16 21:18:21 -08:00
Joshua Warner
a945fd9c5c
Force indent on where clause
2025-01-16 21:17:56 -08:00
Joshua Warner
f08a0012ea
Fix negative float and non-base-10 literal patterns
2025-01-16 21:16:53 -08:00
Joshua Warner
962534e3d1
Fix a couple issues with multiline string literal formatting
2025-01-16 21:16:34 -08:00
Joshua Warner
316ec39af7
Also handle tuple accessors for multiline string checking
2025-01-16 21:16:10 -08:00
Anthony Bullard
d3c400b5e0
Merge pull request #7520 from gamebox/format-new-lambdas
...
Format all lambdas to new syntax
2025-01-16 16:55:10 -06:00
Anthony Bullard
1b43ffa579
Format all lambdas to new syntax
2025-01-16 08:03:44 -06:00
Sam Mohr
b73e4387ae
Implement ? binop operator
2025-01-16 02:44:32 -08:00
Joshua Warner
d43ad92789
Introduce proper type for TypeVar's, mark anything not a lowercase ident as malformed
2025-01-14 19:30:33 -08:00
Joshua Warner
875e355b68
handle record access when checking for block string literals
2025-01-11 11:05:54 -08:00
Joshua Warner
6d324590da
Fix pipe indents in when
2025-01-11 11:05:35 -08:00
Joshua Warner
1cc97fcfa7
Fix else spacing
2025-01-11 11:05:34 -08:00
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
586dc3486f
Fix formatting of negative numbers in pnc apply patterns
2025-01-11 11:05:33 -08:00
Joshua Warner
2e4e4bb957
Fix placement of comma after implements in pnc apply patterns
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
9f395e033d
Fix pnc apply pattern lift spaces
2025-01-09 21:06:08 -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
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
Joshua Warner
8955f3e124
Fix indentation of record updates and calculation of return indentation
2025-01-05 15:10:12 -08:00
Joshua Warner
35ffbcd16b
Fix where precedence vs funcs
2025-01-05 15:10:12 -08:00
Luke Boswell
b67a43bb5d
Merge pull request #7467 from gamebox/issue-7090
...
Support '??' syntax for optional record fields
2025-01-06 09:36:30 +11:00
Anthony Bullard
a24fe430b4
Support '??' syntax for optional record fields
2025-01-04 14:26:20 -06:00
Anthony Bullard
ee089db748
Remove superfluous println
2025-01-04 06:36:28 -06:00
Anthony Bullard
89b7900d7a
Migrate type vars to snake case (Redo)
2025-01-03 19:52:21 -06:00