From fbead7002e55110904a8f049605e0de003aa6962 Mon Sep 17 00:00:00 2001 From: Antoine Brand Date: Tue, 2 Feb 2021 11:01:41 +0100 Subject: [PATCH] Correct the heredoc regexp. To support heredoc in this style: <<< 'HEREDOC' instead of <<<'HEREDOC' --- lisp/php-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)