From eeee6220a7d0fcd8cfa9be2381ed95dca96350b6 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 12 Mar 2018 11:06:20 +0100 Subject: Update php-project.el and yasnippet.el --- .emacs.d/lisp/php-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.emacs.d/lisp/php-mode.el') diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index 2e23642..70e7efc 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el @@ -934,13 +934,13 @@ this ^ lineup" (eval-and-compile (defconst php-heredoc-start-re - "<<<\\(?:\\w+\\|'\\w+'\\)$" + "<<<\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$" "Regular expression for the start of a PHP heredoc.")) (defun php-heredoc-end-re (heredoc-start) "Build a regular expression for the end of a heredoc started by the string HEREDOC-START." ;; Extract just the identifier without <<< and quotes. - (string-match "\\w+" heredoc-start) + (string-match "\\_<.+?\\_>" heredoc-start) (concat "^\\(" (match-string 0 heredoc-start) "\\)\\W")) (defun php-syntax-propertize-function (start end) -- cgit v1.3