postgres-language-server
postgres-language-server copied to clipboard
fix: rewrite statement splitter
this pr rewrites the statement splitter so that it passes through all postgres regression tests.
closes #135
todos:
- [ ] introduce
Repeatedsyntax 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
AnyTokensto be the last in every definition. this will make theTABLE my_tablesyntax work much better - [ ] dont skip any regression tests anymore