Commit graph

34118 commits

Author SHA1 Message Date
Fabian Schmalzried
b2db10939b
Keep comments after record extension 2025-08-24 00:59:36 +02:00
Fabian Schmalzried
73d3bd63bf
change indentation of first comment inside record (aligns with old compiler) 2025-08-24 00:29:48 +02:00
Fabian Schmalzried
8b05031214
Alow only one empty line in the code 2025-08-24 00:06:43 +02:00
Fabian Schmalzried
b20d9f0f93
add snapshot example of lambda inside collections 2025-08-24 00:06:43 +02:00
Fabian Schmalzried
e2a444fadb
fix indent logic for lambda and refactor it for records 2025-08-24 00:06:43 +02:00
JRI98
76e7d168a2
Merge pull request #8217 from FabHof/multline_strings
Fix remaining issues with multiline string formatting
2025-08-23 22:10:40 +01:00
Fabian Schmalzried
73b1b2982b
refactor multiline string formatting in snapshots for consistency 2025-08-23 20:01:44 +02:00
Anton-4
6026cf0069
improve result docs (#8220) 2025-08-23 17:51:53 +02:00
EnDeRBeaT
5c04715b92
Fix use after free inside rocTest (#8219)
fix use after free
2025-08-23 15:43:03 +02:00
Luke Boswell
b10ff7d7f1
Merge pull request #8218 from JRI98/fix-canonicalize-fuzzer-issues
Temporary fix for memory leaks found by the fuzzer
2025-08-23 11:01:23 +10:00
JRI98
f4c9305928
Temporary fix for memory leaks found by the fuzzer 2025-08-23 01:20:26 +01:00
Fabian Schmalzried
a1dcc34954
change logic of fmt.has_newline and use it in formatting multiline_string 2025-08-22 21:59:36 +02:00
Fabian Schmalzried
f0537ca8ad
add special case to format multiline string in collections 2025-08-22 20:39:50 +02:00
JRI98
2cbf033b73
Fix memory leaks detected by the fuzzer (#8215) 2025-08-22 18:01:27 +02:00
Luke Boswell
796c855bdb
Merge pull request #8212 from FabHof/multline_strings
Remove MultilineStringEnd
2025-08-22 08:29:20 +10:00
Fabian Schmalzried
086a0f7ae8 remove MultilineStringEnd 2025-08-21 09:52:53 +00:00
Luke Boswell
45adc74848
Merge pull request #8211 from roc-lang/eval-string-comparison
Support string equality in the interpreter
2025-08-21 14:05:45 +10:00
Luke Boswell (Linux-Desktop)
eda4d2035a
remove stray debug 2025-08-21 10:24:33 +10:00
Luke Boswell (Linux-Desktop)
a2c77c5a60
move instead of copy for bindings 2025-08-21 10:23:07 +10:00
Luke Boswell
7a32020389
fmt 2025-08-20 18:27:58 +10:00
Luke Boswell
f2321d8769
support string equality in the interpreter 2025-08-20 18:22:26 +10:00
Luke Boswell
91f72a3242
support multi-line inputs in REPL snapshots 2025-08-20 18:21:38 +10:00
Luke Boswell
a8fda7dd83
Merge pull request #8210 from roc-lang/roc-test
Minimal `roc test` implementation
2025-08-20 18:20:57 +10:00
Luke Boswell
2e2b1fb1ac
only print summary with verbose flag 2025-08-20 16:36:47 +10:00
Luke Boswell
4d22648dcf
Add --verbose flag and timing 2025-08-20 16:26:34 +10:00
Luke Boswell
7c6ba73d5e
minimal roc test implementation 2025-08-20 16:01:02 +10:00
Luke Boswell
1f7ef0e0aa
Merge pull request #8209 from roc-lang/compiler-version-build
Use compiler version from build options
2025-08-20 15:33:48 +10:00
Luke Boswell
87c0bb2ef4
Merge pull request #8200 from FabHof/multline_strings
Add multiline string support
2025-08-20 12:45:53 +10:00
Luke Boswell
40cca5156a
use compiler version from build options 2025-08-20 11:57:36 +10:00
Fabian Schmalzried
147ff52f4c Extract string interpolation formatting in the Formatter 2025-08-19 12:01:20 +00:00
Fabian Schmalzried
eec77e64f7 improve can representation of multiline strings 2025-08-19 11:45:54 +00:00
Fabian Schmalzried
852a9af365
Update Parser.zig
Add doc comment

Signed-off-by: Fabian Schmalzried <fabhof@posteo.de>
2025-08-19 13:10:38 +02:00
Fabian Schmalzried
47027003c9 implement can and improve formatting 2025-08-18 20:44:12 +00:00
Fabian Schmalzried
159d75283b fix MultilineStringEnd error 2025-08-18 20:44:12 +00:00
Fabian Schmalzried
1d1837d239 first draft to parse multiline strings
TODO: Can and fix fmt
2025-08-18 20:44:11 +00:00
Luke Boswell
272b35f8d7
Merge pull request #8204 from roc-lang/fix-deep-or-chain-stack-overflow
Fix stack overflows
2025-08-18 09:15:11 +10:00
JRI98
4586384854
Merge pull request #8205 from JRI98/fuzz-fixes
Don't treat parser's too nested error as a canonicalize error
2025-08-18 00:14:35 +01:00
Richard Feldman
89c0391bb3
Merge pull request #8206 from roc-lang/fix-unicode-escape
Fix missing blank line in error report
2025-08-16 21:59:55 -04:00
Richard Feldman
a0a5d81bdc
Fix missing newline 2025-08-16 21:48:33 -04:00
JRI98
021c512942
Don't treat parser's too nested error as a canonicalize error
zig build repro-canonicalize -- -b MApwPXt7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3t7e3sw -v
2025-08-16 20:55:00 +01:00
Anton-4
8ba4c90bc4
Fix stack overflows
Tokio uses a smaller stack size for threads, I made it use the default stack size for a program instead. Fixes https://github.com/roc-lang/unicode/issues/28
2025-08-16 20:10:04 +02:00
Richard Feldman
32bd62ed48
Merge pull request #8203 from roc-lang/fix-token-regions
Fix token regions
2025-08-16 14:09:14 -04:00
Richard Feldman
756cbe2947
Merge pull request #8179 from roc-lang/downloads
`roc bundle` and `roc unbundle`
2025-08-16 14:01:35 -04:00
Richard Feldman
124fc81300
Drop some unnecessary blank lines 2025-08-16 13:59:09 -04:00
Richard Feldman
a974a9ef9f
Improve some Unicode escape parsing 2025-08-16 13:58:21 -04:00
Richard Feldman
6aaf9ed366
Replace some UNRECOGNIZED OPERATOR messages 2025-08-16 13:56:04 -04:00
Richard Feldman
257d13a4d3
Drop unnecessary "Here is the problematic code:" 2025-08-16 13:52:38 -04:00
Richard Feldman
613ee878ed
Improve some more regions 2025-08-16 13:46:23 -04:00
Richard Feldman
99dfffec89
Revert pattern assignment parsing with lookahead 2025-08-16 13:12:10 -04:00
Richard Feldman
a7c44ac43a
Update snapshots 2025-08-16 12:59:51 -04:00