From 8bd216d05bbdd1ce60329273a206b15cd193827d Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Wed, 22 Jan 2020 01:07:56 +0900 Subject: [PATCH] Add file extension .php.inc and .stub `.php.inc` is file extension for Rector's test code. `.stub` is file extension for PHPStan's stub file. --- php-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/php-mode.el b/php-mode.el index bf0d40a9..3c9d8355 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1693,6 +1693,7 @@ The output will appear in the buffer *PHP*." ;;;###autoload (progn (add-to-list 'auto-mode-alist '("/\\.php_cs\\(?:\\.dist\\)?\\'" . php-mode)) + (add-to-list 'auto-mode-alist '("\\.\\(?:php\\.inc\\|stub\\)\\'" . php-mode)) (add-to-list 'auto-mode-alist '("\\.\\(?:php[s345]?\\|phtml\\)\\'" . php-mode-maybe))) (provide 'php-mode)