branch: externals/sql-indent
commit 59725cbb33e3eff5e378bb2483157b772af6905c
Author: Pierre Téchoueyres <[email protected]>
Commit: Alex Harsányi <[email protected]>
Fix indentation.
Previous version didn't work.
---
sql-indent.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/sql-indent.el b/sql-indent.el
index d7eecf5..9f0296e 100644
--- a/sql-indent.el
+++ b/sql-indent.el
@@ -566,9 +566,12 @@ See also `sqlind-beginning-of-block'"
(goto-char (match-end 0))
(sqlind-forward-syntactic-ws)
;; skip param list, if any.
- (when (looking-at "(") (ignore-errors (forward-sexp 1)))
- (when (looking-at "return\\(?:[ \n\r\f]+\\)\\([a-z0-9_]+\\)")
(goto-char (match-end 0)))
- (sqlind-forward-syntactic-ws)
+ (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)))