postgres-language-server icon indicating copy to clipboard operation
postgres-language-server copied to clipboard

fix: rewrite statement splitter

Open psteinroe opened this issue 1 year ago • 0 comments

this pr rewrites the statement splitter so that it passes through all postgres regression tests.

closes #135

todos:

  • [ ] introduce Repeated syntax definition to parse CTEs and UNION etc better
  • [ ] add support for multiline comments in the tests (and check if the parser properly parses them too)
  • [ ] make the tracker return false by default if a position reached the end of the definition and by that, require an AnyTokens to be the last in every definition. this will make the TABLE my_table syntax work much better
  • [ ] dont skip any regression tests anymore

psteinroe avatar Aug 09 '24 11:08 psteinroe