]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ruby-mode auto-mode-alist entry
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 15 Nov 2015 23:14:54 +0000 (01:14 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 15 Nov 2015 23:14:54 +0000 (01:14 +0200)
* lisp/progmodes/ruby-mode.el (auto-mode-alist): Add grouping
around the extensions (bug#21257).

lisp/progmodes/ruby-mode.el

index 754785168f2ac58f98c6e356f597db32a61dbf2c..ab83b9773202b33b49bce380c92dec715071b7d6 100644 (file)
@@ -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"