Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix indentation of object operator at the beginning of line
  • Loading branch information
zonuexe committed May 3, 2020
commit 25e0a9ef4d7ec6ed8ae5eccdfd35ce98e0c76441
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