Skip to content

Commit efbc5f9

Browse files
committed
Add php-mode-disable-c-auto-align-backslashes for disable line continuation
refs #620
1 parent a1adc5a commit efbc5f9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: php-mode.el

+9
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,12 @@ In that case set to `NIL'."
298298
:tag "PHP Mode Enable Backup Style Variables"
299299
:type 'boolean)
300300

301+
(defcustom php-mode-disable-c-auto-align-backslashes t
302+
"When set to non-NIL, override `c-auto-align-backslashes' to NIL."
303+
:group 'php-mode
304+
:tag "PHP Mode Disable c-auto-align-backslashes"
305+
:type 'boolean)
306+
301307
(define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook "1.21.0")
302308
(defcustom php-mode-disable-c-mode-hook t
303309
"When set to `T', do not run hooks of parent modes (`java-mode', `c-mode')."
@@ -855,6 +861,9 @@ reported, even if `c-report-syntactic-errors' is non-nil."
855861
php-warned-bad-indent
856862
(php-check-html-for-indentation))
857863
(let ((here (point))
864+
(c-auto-align-backslashes
865+
(unless php-mode-disable-c-auto-align-backslashes
866+
c-auto-align-backslashes))
858867
doit)
859868
(move-beginning-of-line nil)
860869
;; Don't indent heredoc end mark

0 commit comments

Comments
 (0)