This is based on the way vim's default sqloracle.vim defines folds. A fold starts with a keyword like CREATE and ends with a ; at the end of a line.
There might be some regressions, e.g. I think CREATE OR REPLACE FUNCTION ... is now getting highlighted incorrectly.
This is a draft PR because I edited the generated .vim instead of src/pgsql.sql. I just want to know if the approach seems reasonable, or if there's a better way of doing folds, or maybe if you would like a variable check to enable/disable folding in a user's .vimrc?
Closes: #18.
This is based on the way vim's default [sqloracle.vim](https://github.com/vim/vim/blob/master/runtime/syntax/sqloracle.vim) defines folds. A fold starts with a keyword like CREATE and ends with a ; at the end of a line.
There might be some regressions, e.g. I think `CREATE OR REPLACE FUNCTION ...` is now getting highlighted incorrectly.
This is a draft PR because I edited the generated .vim instead of src/pgsql.sql. I just want to know if the approach seems reasonable, or if there's a better way of doing folds, or maybe if you would like a variable check to enable/disable folding in a user's .vimrc?
Closes: #18.