Skip to content

Commit

Permalink
Fix indentation of object operator at the beginning of line
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed May 3, 2020
1 parent 32b2002 commit 25e0a9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ might be to handle switch and goto labels differently."
(defun php-lineup-cascaded-calls (langelem)
"Line up chained methods using `c-lineup-cascaded-calls',
but only if the setting is enabled"
(when php-mode-lineup-cascaded-calls
(c-lineup-cascaded-calls langelem)))
(if php-mode-lineup-cascaded-calls
(c-lineup-cascaded-calls langelem)
(save-excursion
(beginning-of-line)
(if (looking-at-p "\\s-*->") '+ nil))))

(c-add-style
"php"
Expand Down

0 comments on commit 25e0a9e

Please sign in to comment.