diff options
Diffstat (limited to '.emacs.d/lisp/php-mode.el')
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index a7c1985..9aae782 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el | |||
| @@ -1061,7 +1061,8 @@ PHP heredoc." | |||
| 1061 | php-beginning-of-defun-regexp) | 1061 | php-beginning-of-defun-regexp) |
| 1062 | 1062 | ||
| 1063 | (when (>= emacs-major-version 25) | 1063 | (when (>= emacs-major-version 25) |
| 1064 | (php-syntax-propertize-function (point-min) (point-max)))) | 1064 | (with-silent-modifications |
| 1065 | (php-syntax-propertize-function (point-min) (point-max))))) | ||
| 1065 | 1066 | ||
| 1066 | 1067 | ||
| 1067 | ;; Define function name completion function | 1068 | ;; Define function name completion function |
| @@ -1328,7 +1329,7 @@ a completion list." | |||
| 1328 | ("->\\(\\sw+\\)\\s-*(" 1 'default) | 1329 | ("->\\(\\sw+\\)\\s-*(" 1 'default) |
| 1329 | 1330 | ||
| 1330 | ;; Highlight special variables | 1331 | ;; Highlight special variables |
| 1331 | ("\\$\\(this\\|that\\)" 1 font-lock-constant-face) | 1332 | ("\\$\\(this\\|that\\)\\_>" 1 font-lock-constant-face) |
| 1332 | ("\\(\\$\\|->\\)\\([a-zA-Z0-9_]+\\)" 2 font-lock-variable-name-face) | 1333 | ("\\(\\$\\|->\\)\\([a-zA-Z0-9_]+\\)" 2 font-lock-variable-name-face) |
| 1333 | 1334 | ||
| 1334 | ;; Highlight function/method names | 1335 | ;; Highlight function/method names |
