summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/php-mode.el3
-rw-r--r--.emacs.d/lisp/yasnippet.el3
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'."