Skip to content

Commit fbead70

Browse files
committed
Correct the heredoc regexp.
To support heredoc in this style: <<< 'HEREDOC' instead of <<<'HEREDOC'
1 parent 8cdc727 commit fbead70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/php-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ this ^ lineup"
970970

971971
(eval-and-compile
972972
(defconst php-heredoc-start-re
973-
"<<<\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$"
973+
"<<<[ \t]*\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$"
974974
"Regular expression for the start of a PHP heredoc."))
975975

976976
(defun php-heredoc-end-re (heredoc-start)

0 commit comments

Comments
 (0)