branch: externals/sql-indent
commit deb98856760b03fe8e78c6d9cca0130e0f49beff
Author: Alex Harsanyi <[email protected]>
Commit: Alex Harsanyi <[email protected]>

    fix parsing the "end if" block when an "elsif" is present
---
 sql-indent.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql-indent.el b/sql-indent.el
index 171c0f8..fde9239 100644
--- a/sql-indent.el
+++ b/sql-indent.el
@@ -915,7 +915,7 @@ See also `sqlind-beginning-of-block'"
                          (list 'block-end start-kind start-label)))
                   anchor))))
 
-            ((eq block-kind 'else)
+            ((memq block-kind '(else elsif))
              ;; search the enclosing then context and refine form there.  The
              ;; `cdr' in sqlind-syntax-of-line is used to remove the
              ;; block-start context for the else clause

Reply via email to