[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 2edfc40 2/3: Fix ruby-mode auto-mode-alist entry
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] emacs-25 2edfc40 2/3: Fix ruby-mode auto-mode-alist entry |
Date: |
Sun, 15 Nov 2015 23:32:59 +0000 |
branch: emacs-25
commit 2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Fix ruby-mode auto-mode-alist entry
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping
around the extensions (bug#21257).
---
lisp/progmodes/ruby-mode.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 7547851..ab83b97 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -2258,9 +2258,10 @@ See `font-lock-syntax-table'.")
;;;###autoload
(add-to-list 'auto-mode-alist
- (cons (purecopy (concat "\\(?:\\."
+ (cons (purecopy (concat "\\(?:\\.\\(?:"
"rb\\|ru\\|rake\\|thor"
"\\|jbuilder\\|rabl\\|gemspec\\|podspec"
+ "\\)"
"\\|/"
"\\(?:Gem\\|Rake\\|Cap\\|Thor"
"\\|Puppet\\|Berks"