diff options
Diffstat (limited to '.emacs.d/lisp/php-mode.el')
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 4 |
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) |
