aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 2438029bfdd..cfa3cc59568 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -278,13 +278,15 @@
278 278
279;;;###autoload 279;;;###autoload
280(defconst python--auto-mode-alist-regexp 280(defconst python--auto-mode-alist-regexp
281 (rx (or 281 ;; (rx (or
282 (seq "." (or "py" 282 ;; (seq "." (or "py"
283 "pth" ; Python Path Configuration File 283 ;; "pth" ; Python Path Configuration File
284 "pyi" ; Python Stub File (PEP 484) 284 ;; "pyi" ; Python Stub File (PEP 484)
285 "pyw")) ; MS-Windows specific extension 285 ;; "pyw")) ; MS-Windows specific extension
286 (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files 286 ;; (seq "/" (or "SConstruct" "SConscript"))) ; SCons Build Files
287 eos)) 287 ;; eos)
288 "\\(?:\\.\\(?:p\\(?:th\\|y[iw]?\\)\\)\\|/\\(?:SCons\\(?:\\(?:crip\\|truc\\)t\\)\\)\\)\\'"
289 )
288 290
289;;;###autoload 291;;;###autoload
290(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode)) 292(add-to-list 'auto-mode-alist (cons python--auto-mode-alist-regexp 'python-mode))