Skip to content

Commit

Permalink
Correct the heredoc regexp.
Browse files Browse the repository at this point in the history
To support heredoc in this style:
<<< 'HEREDOC'
instead of
<<<'HEREDOC'
  • Loading branch information
antoineB committed Mar 1, 2021
1 parent 8cdc727 commit fbead70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/php-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fbead70

Please sign in to comment.