Skip to content

Conversation

@psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Feb 21, 2025

wanted to see if it works so added a test :)


turns out the issue was twofold:

  1. the lexer did not count \r\n as a single newline
  2. the splitter did just check for double newlines with .chars().count(), which is obviously not working if all windows newlines are \r\n

also fixed the issues coming from the github actions linter

@psteinroe psteinroe changed the title chore(pglt_statement_splitter): add test for comments fix(pglt_statement_splitter): properly split for windows Mar 7, 2025
@psteinroe psteinroe mentioned this pull request Mar 9, 2025
Copy link
Collaborator

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pr des Monats, perfect 5/7 experience, would review again

@psteinroe psteinroe merged commit 2ed3129 into main Mar 10, 2025
6 checks passed
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.

3 participants