From e7b2ddf74afd001964eea715b64b299855c6fdef Mon Sep 17 00:00:00 2001 From: Tim Ryan Date: Tue, 12 Nov 2024 14:19:45 -0500 Subject: [PATCH] add test to not split comments with jinja tags --- tests/data/unformatted/127_more_comments.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/data/unformatted/127_more_comments.sql b/tests/data/unformatted/127_more_comments.sql index 56d64a41..c33513bc 100644 --- a/tests/data/unformatted/127_more_comments.sql +++ b/tests/data/unformatted/127_more_comments.sql @@ -1,4 +1,6 @@ -- source: https://github.com/tconbeer/sqlfmt/issues/348 +-- source: https://github.com/tconbeer/sqlfmt/issues/628 +-- depends_on: {{ ref('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') }} with table_a as ( select /* Notice that this select statement can fit on a single line without comments */ @@ -26,6 +28,8 @@ select 1 , 4 -- four inline )))))__SQLFMT_OUTPUT__((((( -- source: https://github.com/tconbeer/sqlfmt/issues/348 +-- source: https://github.com/tconbeer/sqlfmt/issues/628 +-- depends_on: {{ ref('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') }} with table_a as ( select