Skip to content

Commit

Permalink
Merge pull request #651 from antoineB/feature/heredoc-regexp
Browse files Browse the repository at this point in the history
Correct the heredoc regexp.
  • Loading branch information
zonuexe authored Mar 6, 2021
2 parents 8cdc727 + fbead70 commit 53da0b4
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 53da0b4

Please sign in to comment.