cancaicai
bc2acb3dd0
test/rust: add missing escaped chars
...
Signed-off-by: cancaicai <2356672992@qq.com>
2025-02-18 21:17:50 +08:00
cancaicai
8c9de7c7ab
parser/rust: improve word method comments and examples
...
Signed-off-by: cancaicai <2356672992@qq.com>
2025-02-16 21:13:39 +08:00
Sam Mohr
631e59ce06
Upgrade hosted header in the style module header
2025-01-26 15:07:57 -08:00
Luke Boswell
5b4c8e70d8
Merge pull request #7536 from joshuawarner32/remove-indented-else
...
Remove indented-else syntax from the formatter
2025-01-21 18:02:05 +11: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
Joshua Warner
3c158f643d
Fix and/or parsing
2025-01-20 17:00:20 -08:00
Joshua Warner
ef4df617ce
Fix type header / pattern equivalence
2025-01-20 17:00:20 -08:00
Sam Mohr
809fe23afd
Merge pull request #7533 from smores56/simple-can-solo
...
Move desugaring to new `roc_can_solo` crate
2025-01-19 19:06:10 -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
Sam Mohr
fce14d31b0
Move desugaring to new roc_can_solo crate
2025-01-19 07:16:43 -08:00
Joshua Warner
300412a4da
Fix pipe closure after expr
2025-01-18 19:40:52 -08:00
Sam Mohr
7914f0c7d8
Fix clippy issue
2025-01-17 20:01:54 -08:00
Sam Mohr
a292e070d4
Prefer and
and or
for boolean operators
2025-01-17 16:15:31 -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
51f2cdccf7
Relax argument indentation requirements in closures
2025-01-16 21:27:40 -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
Anthony Bullard
8e1e1520e3
New Lambda Syntax with |...|
...
This adds parser support for the new lambda syntax. It does not remove
the existing syntax, nor will the new syntax be retained in formatting.
That will be done in a separate PR to keep the two respective PRs
relatively small and easy to review.
2025-01-15 05:58:16 -06: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
6d2b635dbc
Don't turn pnc apply dbg into DbgStmt
2025-01-11 11:05:35 -08:00
Joshua Warner
2bbcbbd5c1
clippy fixes
2025-01-11 11:05:29 -08:00
Joshua Warner
0471993428
Further relax indentation of implements ability chains
2025-01-10 21:10:58 -08:00
Joshua Warner
7a1b3b8257
Allow funky indentation of implements clause, since we know it must be coming anyway
2025-01-10 21:10:57 -08:00
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