branch: externals/sql-indent commit 0d2b3c9b0ef5f629c5b9f9eab248a4a01f71b1cc Author: Vincent Bernardoff <v...@luminar.eu.org> Commit: GitHub <nore...@github.com>
don't recognize "if" statements after "routine" and "view" keywords (#100) --- sql-indent.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-indent.el b/sql-indent.el index 5a42695..e3503d7 100644 --- a/sql-indent.el +++ b/sql-indent.el @@ -497,7 +497,7 @@ We try to avoid false positives, like \"end if\" or the various (forward-word -1) ;; we don't want to match an "end if", and things like "drop index if ;; exists..." and "create index if not exist..." - (not (looking-at "end\\|schema\\|table\\|view\\|index\\|trigger\\|procedure\\|function\\|package\\|body\\|extension"))))) + (not (looking-at "end\\|schema\\|table\\|view\\|index\\|type\\|trigger\\|procedure\\|function\\|routine\\|package\\|body\\|extension"))))) (defun sqlind-maybe-if-statement () "If (point) is on an IF statement, report its syntax."