summaryrefslogtreecommitdiff
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2015-11-16 01:14:54 +0200
committerDmitry Gutov <dgutov@yandex.ru>2015-11-16 01:14:54 +0200
commit2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0 (patch)
tree4d85da467ab0cabd79f97602759758b030fbba4e /lisp/progmodes
parentf60a3b086cb30e1b794f586fe1da5947869e29fc (diff)
downloademacs-2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0.tar.gz
emacs-2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0.tar.bz2
emacs-2edfc40a72439d0e1b8ccd5ad8d1523e0de601c0.zip
Fix ruby-mode auto-mode-alist entry
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping around the extensions (bug#21257).
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/ruby-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 754785168f2..ab83b977320 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"