alex-hhh / emacs-sql-indent

Syntax based indentation for SQL files inside GNU Emacs
GNU General Public License v3.0
121 stars 18 forks source link

Postgresql end if indentation #102

Closed ghost closed 3 years ago

ghost commented 3 years ago

In a pl/pgsql function, the if statements are ended with end if. These currently are being indented at the body level of the if statement, or I don't have the mode configured properly.

  if (not found)
  then
    raise notice 'Not found';
    return 1;
    end if;
alex-hhh commented 3 years ago

Thanks for reporting this. I pushed a fix for it and should now work correctly.

ghost commented 3 years ago

Cool thanks!