Skip to content

Commit

Permalink
add test to not split comments with jinja tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantimjohn committed Nov 12, 2024
1 parent afbd944 commit e7b2ddf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/data/unformatted/127_more_comments.sql
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e7b2ddf

Please sign in to comment.