branch: externals/sql-indent
commit 19d05809f25ee0d52235744587ff2636e60814ee
Author: Pierre Téchoueyres <[email protected]>
Commit: Alex Harsányi <[email protected]>

    Correct indentation of function's declaration in package specs.
    
    Detect end of function declaration in package spec.
---
 sql-indent.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sql-indent.el b/sql-indent.el
index 43b71cb..1687850 100644
--- a/sql-indent.el
+++ b/sql-indent.el
@@ -567,7 +567,8 @@ See also `sqlind-beginning-of-block'"
             (sqlind-forward-syntactic-ws)
            ;; skip param list, if any.
            (when (looking-at "(") (ignore-errors (forward-sexp 1)))
-           (sqlind-forward-syntactic-ws)
+           (when (looking-at "return\\(?:[ \n\r\f]+\\)\\([a-z0-9_]+\\)") 
(goto-char (match-end 0)))
+           (sqlind-forward-syntactic-ws))
            (when (looking-at ";")
              ;; not a procedure after all.
              (throw 'exit nil)))

Reply via email to