Skip to content

Commit 96bf2b0

Browse files
authored
fix compilation error
"php-heredoc-start-re" must be defined when compiled and run, else macroexpansion fails at compile time.
1 parent c9601d9 commit 96bf2b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

php-mode.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,10 @@ this ^ lineup"
942942
(beginning-of-line)
943943
(if (looking-at-p "\\s-*;\\s-*$") 0 '+)))
944944

945-
(defconst php-heredoc-start-re
946-
"<<<\\(?:\\w+\\|'\\w+'\\)$"
947-
"Regular expression for the start of a PHP heredoc.")
945+
(eval-and-compile
946+
(defconst php-heredoc-start-re
947+
"<<<\\(?:\\w+\\|'\\w+'\\)$"
948+
"Regular expression for the start of a PHP heredoc."))
948949

949950
(defun php-heredoc-end-re (heredoc-start)
950951
"Build a regular expression for the end of a heredoc started by the string HEREDOC-START."

0 commit comments

Comments
 (0)