diff --git a/lisp/php-mode.el b/lisp/php-mode.el index b3618e24..4488561f 100644 --- a/lisp/php-mode.el +++ b/lisp/php-mode.el @@ -970,7 +970,7 @@ this ^ lineup" (eval-and-compile (defconst php-heredoc-start-re - "<<<\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$" + "<<<[ \t]*\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$" "Regular expression for the start of a PHP heredoc.")) (defun php-heredoc-end-re (heredoc-start)