[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5feaf90: * lisp/progmodes/python.el (python-rx-cons
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 5feaf90: * lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or` |
Date: |
Wed, 13 Mar 2019 13:40:41 -0400 (EDT) |
branch: master
commit 5feaf906e110097a443af78f549f01c1bd527e25
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or`
The previous code worked earlier because of a bug in `rx` (which used
`regexp-opt` without passing it to `keep-order` argument), but now that `rx`
has been fixed the underlying bug here reared its ugly head.
---
lisp/progmodes/python.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 65d5d90..5d0d03d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -438,7 +438,7 @@ It returns a file name which can be used directly as
argument of
(* ?\\ ?\\) (any ?\' ?\")))
(* ?\\ ?\\)
;; Match single or triple quotes of any kind.
- (group (or "\"" "\"\"\"" "'" "'''")))))
+ (group (or "\"\"\"" "\"" "'''" "'")))))
(coding-cookie . ,(rx line-start ?# (* space)
(or
;; # coding=<encoding name>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5feaf90: * lisp/progmodes/python.el (python-rx-constituents): Fix ordering in `or`,
Stefan Monnier <=