supabase-community / postgres_lsp

A Language Server for Postgres
https://supabase.com
MIT License
3.32k stars 62 forks source link

refactor statement parser #35

Closed psteinroe closed 1 year ago

psteinroe commented 1 year ago

What kind of change does this PR introduce?

fixes #33

What is the current behavior?

source files with nested statements (e.g. create function) are not parsed.

What is the new behavior?

The source is properly cut into its statement, even when there is a create function statement in it.