Skip to content

Require two blank lines between SQL statements - #306

Merged
Maxteabag merged 1 commit into
mainfrom
test/issue-281-blank-lines
Aug 23, 2026
Merged

Require two blank lines between SQL statements#306
Maxteabag merged 1 commit into
mainfrom
test/issue-281-blank-lines

Conversation

@Maxteabag

Copy link
Copy Markdown
Owner

Summary

  • keep one blank line as ordinary formatting inside a SQL statement
  • require two consecutive blank lines before treating whitespace as an implicit statement separator
  • apply the same rule to execution normalization and statement-at-cursor ranges
  • support both LF and CRLF input

Fixes #281.

Validation

  • statement/transaction/alert/process-worker tests: 79 passed
  • single-blank-line regression reproduces the reported LIMIT formatting case
  • double-blank-line regressions cover LF, CRLF, and whitespace-only lines
  • Ruff and structured autoreview: clean

@Maxteabag
Maxteabag merged commit 84c8193 into main Aug 23, 2026
9 of 11 checks passed
@Maxteabag
Maxteabag deleted the test/issue-281-blank-lines branch August 23, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blank lines split a single SQL statement in the query editor

1 participant