From 0235194b50893effa55d3d6f0178906574104124 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 15 May 2017 10:56:44 +0200 Subject: Update yasnippet and php-mode --- .emacs.d/lisp/php-mode.el | 3 ++- .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." 1 font-lock-type-face) ;; Highlight return types in functions and methods. - ("function.+:\\s-?\\??\\(\\(?:\\sw\\|\\s_\\)+\\)" 1 font-lock-type-face) + ("function.+:\\s-*\\??\\(\\(?:\\sw\\|\\s_\\)+\\)" 1 font-lock-type-face) + (")\\s-*:\\s-*\\??\\(\\(?:\\sw\\|\\s_\\)+\\)\\s-*\{" 1 font-lock-type-face) ;; Highlight class names used as nullable type hints ("\\?\\(\\(:?\\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'." (ignore-errors (save-match-data ; `scan-sexps' may modify match data. (with-syntax-table (standard-syntax-table) - (scan-sexps from count))))) + (let ((parse-sexp-lookup-properties nil)) + (scan-sexps from count)))))) (defun yas--make-marker (pos) "Create a marker at POS with nil `marker-insertion-type'." -- cgit v1.3