Skip to content

Commit ec42807

Browse files
cknittclaude
authored andcommitted
Fix the master build: add the blank line that rescript-lang#8961 prints to the comment pattern snapshot (rescript-lang#9137)
Add the blank line before a multi-line let to the comment pattern snapshot rescript-lang#9127 added list-pattern cases to printer/comments/pattern.res, and its snapshot was made before rescript-lang#8961, which puts a blank line around multi-line module items, was merged. Together they print a blank line before `let f = x => switch x {…}`, and the syntax test of master has failed on it since rescript-lang#9127. Claude-Session: https://claude.ai/code/session_01Kbf3gLpf7RN1MiRcubPgRn Signed-off-by: Christoph Knittel <ck@cca.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Pedro Castro <aspeddro@gmail.com>
1 parent 90f9ee5 commit ec42807

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/syntax_tests/data/printer/comments/expected/pattern.res.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ let /* d */ r = list{1, 2}
5353
let r /* after */ = list{1, 2}
5454
let /* d1 */ /* d2 */ /* e */ r = list{1, 2}
5555
let f = /* d */ r => r
56+
5657
let f = x =>
5758
switch x {
5859
/* d */ | r => r

0 commit comments

Comments
 (0)