Skip to content

Commit

Permalink
Fix issue introduced in #585
Browse files Browse the repository at this point in the history
resolve #586
  • Loading branch information
zonuexe committed Nov 11, 2019
1 parent 9fe64fc commit 001600c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,10 @@ might be to handle switch and goto labels differently."
(eq 'arglist-cont-nonempty (car langelem)))
(save-excursion
(save-match-data
(when (and (re-search-backward php-mode--re-return-typed-closure (cdr langelem) t)
(progn
(goto-char (match-data 1))
(not (php-in-string-or-comment-p))))
(setq in-return-typed-closure t)))))
(when (re-search-backward php-mode--re-return-typed-closure (cdr langelem) t)
(goto-char (match-beginning 1))
(when (not (php-in-string-or-comment-p))
(setq in-return-typed-closure t))))))
(unless in-return-typed-closure
(c-lineup-arglist langelem))))

Expand Down

0 comments on commit 001600c

Please sign in to comment.