Skip to content

Commit

Permalink
Merge pull request #621 from emacs-php/feature/override-c-auto-align-…
Browse files Browse the repository at this point in the history
…backslashes

Add php-mode-disable-c-auto-align-backslashes for disable line continuation
  • Loading branch information
zonuexe authored Apr 15, 2020
2 parents a1adc5a + efbc5f9 commit 4d0b4a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ In that case set to `NIL'."
:tag "PHP Mode Enable Backup Style Variables"
:type 'boolean)

(defcustom php-mode-disable-c-auto-align-backslashes t
"When set to non-NIL, override `c-auto-align-backslashes' to NIL."
:group 'php-mode
:tag "PHP Mode Disable c-auto-align-backslashes"
:type 'boolean)

(define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook "1.21.0")
(defcustom php-mode-disable-c-mode-hook t
"When set to `T', do not run hooks of parent modes (`java-mode', `c-mode')."
Expand Down Expand Up @@ -855,6 +861,9 @@ reported, even if `c-report-syntactic-errors' is non-nil."
php-warned-bad-indent
(php-check-html-for-indentation))
(let ((here (point))
(c-auto-align-backslashes
(unless php-mode-disable-c-auto-align-backslashes
c-auto-align-backslashes))
doit)
(move-beginning-of-line nil)
;; Don't indent heredoc end mark
Expand Down

0 comments on commit 4d0b4a0

Please sign in to comment.