From baa0fad528cd0082820c698352e4aeed08fbab51 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Mon, 12 Jun 2017 12:19:09 +0200 Subject: Update php-mode and yasnippet --- .emacs.d/lisp/php-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.emacs.d/lisp/php-mode.el') diff --git a/.emacs.d/lisp/php-mode.el b/.emacs.d/lisp/php-mode.el index 60df841..62e1e97 100644 --- a/.emacs.d/lisp/php-mode.el +++ b/.emacs.d/lisp/php-mode.el @@ -294,7 +294,9 @@ You can replace \"en\" with your ISO language code." :type 'string) ;;;###autoload -(add-to-list 'interpreter-mode-alist (cons "php" 'php-mode)) +(add-to-list 'interpreter-mode-alist + ;; Match php, php-3, php5, php7, php5.5, php-7.0.1, etc. + (cons "php\\(?:-?[3457]\\(?:\\.[0-9]+\\)*\\)?" 'php-mode)) (defcustom php-mode-hook nil "List of functions to be executed on entry to `php-mode'." -- cgit v1.3