diff options
| author | Simeon Simeonov | 2017-05-15 10:56:44 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2017-05-15 10:56:44 +0200 |
| commit | 0235194b50893effa55d3d6f0178906574104124 (patch) | |
| tree | 7bb89ee7e0a86ea0eec8763522250f264f3b8960 | |
| parent | 633aa066a900607361b85b110db9ac387b5f258b (diff) | |
Update yasnippet and php-mode
| -rw-r--r-- | .emacs.d/lisp/php-mode.el | 3 | ||||
| -rw-r--r-- | .emacs.d/lisp/yasnippet.el | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index 12aa8c0..60df841 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el | |||
| @@ -1584,7 +1584,8 @@ a completion list." | |||
| 1584 | 1 font-lock-type-face) | 1584 | 1 font-lock-type-face) |
| 1585 | 1585 | ||
| 1586 | ;; Highlight return types in functions and methods. | 1586 | ;; Highlight return types in functions and methods. |
| 1587 | ("function.+:\\s-?\\??\\(\\(?:\\sw\\|\\s_\\)+\\)" 1 font-lock-type-face) | 1587 | ("function.+:\\s-*\\??\\(\\(?:\\sw\\|\\s_\\)+\\)" 1 font-lock-type-face) |
| 1588 | (")\\s-*:\\s-*\\??\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*\{" 1 font-lock-type-face) | ||
| 1588 | 1589 | ||
| 1589 | ;; Highlight class names used as nullable type hints | 1590 | ;; Highlight class names used as nullable type hints |
| 1590 | ("\\?\\(\\(:?\\sw\\|\\s_\\)+\\)\\s-+\\$" 1 font-lock-type-face) | 1591 | ("\\?\\(\\(:?\\sw\\|\\s_\\)+\\)\\s-+\\$" 1 font-lock-type-face) |
diff --git a/.emacs.d/lisp/yasnippet.el b/.emacs.d/lisp/yasnippet.el index a3a1eaa..fbdb461 100644 --- a/.emacs.d/lisp/yasnippet.el +++ b/.emacs.d/lisp/yasnippet.el | |||
| @@ -4351,7 +4351,8 @@ with their evaluated value into `yas--backquote-markers-and-strings'." | |||
| 4351 | (ignore-errors | 4351 | (ignore-errors |
| 4352 | (save-match-data ; `scan-sexps' may modify match data. | 4352 | (save-match-data ; `scan-sexps' may modify match data. |
| 4353 | (with-syntax-table (standard-syntax-table) | 4353 | (with-syntax-table (standard-syntax-table) |
| 4354 | (scan-sexps from count))))) | 4354 | (let ((parse-sexp-lookup-properties nil)) |
| 4355 | (scan-sexps from count)))))) | ||
| 4355 | 4356 | ||
| 4356 | (defun yas--make-marker (pos) | 4357 | (defun yas--make-marker (pos) |
| 4357 | "Create a marker at POS with nil `marker-insertion-type'." | 4358 | "Create a marker at POS with nil `marker-insertion-type'." |
