Closed sfllaw closed 4 years ago
Thanks for reporting this issue -- it was indeed a defect where create table (and view and index) statements were incorrectly considered to start an SQL block. I pushed a fix for this. Can you please try it out? Thanks, Alex.
Fixed!
Test case in PostgreSQL:
When running
sqlind-indent-line
on theEND
statement,sqlind-refine-end-syntax
throws theend statement closes nothing
syntax error.It looks like after the
CREATE TABLE
statement, sqlind thinks that it is back to'toplevel
, even though it should be'in-begin-block
.