From 9e566edadda37d63131bedeaa199e0bad70bae17 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Fri, 30 Oct 2026 07:58:38 +0000 Subject: [PATCH] Add the blank line before a multi-line let to the comment pattern snapshot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #9127 added list-pattern cases to printer/comments/pattern.res, and its snapshot was made before #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 #9127. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kbf3gLpf7RN1MiRcubPgRn Signed-off-by: Christoph Knittel --- .../syntax_tests/data/printer/comments/expected/pattern.res.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/syntax_tests/data/printer/comments/expected/pattern.res.txt b/tests/syntax_tests/data/printer/comments/expected/pattern.res.txt index 2bbaa82183..913e262f8b 100644 --- a/tests/syntax_tests/data/printer/comments/expected/pattern.res.txt +++ b/tests/syntax_tests/data/printer/comments/expected/pattern.res.txt @@ -53,6 +53,7 @@ let /* d */ r = list{1, 2} let r /* after */ = list{1, 2} let /* d1 */ /* d2 */ /* e */ r = list{1, 2} let f = /* d */ r => r + let f = x => switch x { /* d */ | r => r