1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Recognize .rbw and .pyw files (bug#18753)

* lisp/progmodes/python.el (auto-mode-alist):
Recognize .pyw files.

* lisp/progmodes/ruby-mode.el (auto-mode-alist):
Recognize .rbw files.
This commit is contained in:
Vasily Korytov 2015-11-16 01:32:01 +02:00 committed by Dmitry Gutov
parent 2edfc40a72
commit dbc090aeab
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@
(autoload 'help-function-arglist "help-fns") (autoload 'help-function-arglist "help-fns")
;;;###autoload ;;;###autoload
(add-to-list 'auto-mode-alist (cons (purecopy "\\.py\\'") 'python-mode)) (add-to-list 'auto-mode-alist (cons (purecopy "\\.pyw?\\'") 'python-mode))
;;;###autoload ;;;###autoload
(add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode)) (add-to-list 'interpreter-mode-alist (cons (purecopy "python[0-9.]*") 'python-mode))

View file

@ -2259,7 +2259,7 @@ See `font-lock-syntax-table'.")
;;;###autoload ;;;###autoload
(add-to-list 'auto-mode-alist (add-to-list 'auto-mode-alist
(cons (purecopy (concat "\\(?:\\.\\(?:" (cons (purecopy (concat "\\(?:\\.\\(?:"
"rb\\|ru\\|rake\\|thor" "rbw?\\|ru\\|rake\\|thor"
"\\|jbuilder\\|rabl\\|gemspec\\|podspec" "\\|jbuilder\\|rabl\\|gemspec\\|podspec"
"\\)" "\\)"
"\\|/" "\\|/"