summaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/php-mode.el
diff options
context:
space:
mode:
authorSimeon Simeonov2018-03-12 11:06:20 +0100
committerSimeon Simeonov2018-03-12 11:06:20 +0100
commiteeee6220a7d0fcd8cfa9be2381ed95dca96350b6 (patch)
tree37bcb2c9fcd9611f874d96c47b0d7d9b38922415 /.emacs.d/lisp/php-mode.el
parentf12ad4ea469aa95a4f8a5c42a1899b375fa405b6 (diff)
Update php-project.el and yasnippet.el
Diffstat (limited to '.emacs.d/lisp/php-mode.el')
-rw-r--r--.emacs.d/lisp/php-mode.el4
1 files changed, 2 insertions, 2 deletions
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"
934 934
935(eval-and-compile 935(eval-and-compile
936 (defconst php-heredoc-start-re 936 (defconst php-heredoc-start-re
937 "<<<\\(?:\\w+\\|'\\w+'\\)$" 937 "<<<\\(?:\\_<.+?\\_>\\|'\\_<.+?\\_>'\\|\"\\_<.+?\\_>\"\\)$"
938 "Regular expression for the start of a PHP heredoc.")) 938 "Regular expression for the start of a PHP heredoc."))
939 939
940(defun php-heredoc-end-re (heredoc-start) 940(defun php-heredoc-end-re (heredoc-start)
941 "Build a regular expression for the end of a heredoc started by the string HEREDOC-START." 941 "Build a regular expression for the end of a heredoc started by the string HEREDOC-START."
942 ;; Extract just the identifier without <<< and quotes. 942 ;; Extract just the identifier without <<< and quotes.
943 (string-match "\\w+" heredoc-start) 943 (string-match "\\_<.+?\\_>" heredoc-start)
944 (concat "^\\(" (match-string 0 heredoc-start) "\\)\\W")) 944 (concat "^\\(" (match-string 0 heredoc-start) "\\)\\W"))
945 945
946(defun php-syntax-propertize-function (start end) 946(defun php-syntax-propertize-function (start end)