* 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.
This commit is contained in:
Stefan Monnier 2019-03-13 13:40:36 -04:00
parent 9486d87cfe
commit 5feaf906e1

View file

@ -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>