branch: elpa/drupal-mode
commit 511fa0de3f297cb0b562f089be237b7ec94159cf
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Ensured file extensions are actually extensions.
We went into `php-mode' on files like Bash's ~/.profile.
Fix regexp in auto-mode-list to ensure there is no directory separator
in front of the extensions.
---
drupal-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 16e6f25c50..750786c7a9 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -643,8 +643,8 @@ mode-hook."
;;;###autoload
(progn
- (add-to-list 'auto-mode-alist
'("\\.\\(module\\|test\\|install\\|profile\\|tpl\\.php\\|theme\\)\\'" .
php-mode))
- (add-to-list 'auto-mode-alist '("\\.info\\'" . conf-windows-mode)))
+ (add-to-list 'auto-mode-alist
'("[^/]\\.\\(module\\|test\\|install\\|profile\\|tpl\\.php\\|theme\\)\\'" .
php-mode))
+ (add-to-list 'auto-mode-alist '("[^/]\\.info\\'" . conf-windows-mode)))
;; Load support for various Emacs features if necessary.