Skip to content

Commit 2b5963b

Browse files
committed
Check for buffer is in poly-php-html-mode
1 parent da7bf2a commit 2b5963b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: php-mode.el

+2
Original file line numberDiff line numberDiff line change
@@ -825,13 +825,15 @@ example `html-mode'. Known such libraries are:\n\t"
825825
If the optional argument `QUIET' is non-nil then no syntactic errors are
826826
reported, even if `c-report-syntactic-errors' is non-nil."
827827
(if (or (not php-mode-warn-if-mumamo-off)
828+
(not (php-in-poly-php-html-mode))
828829
php-warned-bad-indent
829830
(php-check-html-for-indentation))
830831
(funcall 'c-indent-region start end quiet)))
831832

832833
(defun php-cautious-indent-line ()
833834
"Carefully indent lines in contexts other than HTML templates."
834835
(if (or (not php-mode-warn-if-mumamo-off)
836+
(not (php-in-poly-php-html-mode))
835837
php-warned-bad-indent
836838
(php-check-html-for-indentation))
837839
(let ((here (point))

0 commit comments

Comments
 (0)