Skip to content

Commit 53da0b4

Browse files
authored
Merge pull request #651 from antoineB/feature/heredoc-regexp
Correct the heredoc regexp.
2 parents 8cdc727 + fbead70 commit 53da0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisp/php-mode.el

+1-1
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)