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

Treat empty triple quote

Fix #70
This commit is contained in:
Takafumi Arakaki 2012-05-17 00:03:41 -03:00 committed by Fabián Ezequiel Gallina
parent 1dae378f10
commit 8f1eba8b5e

View file

@ -465,6 +465,7 @@ This variant of `rx' supports common python named REGEXPS."
;; string delimiters. Fixme: Is there a better way?
;; First avoid a sequence preceded by an odd number of backslashes.
`((,(concat "\\(?:\\([RUru]\\)[Rr]?\\|^\\|[^\\]\\(?:\\\\.\\)*\\)" ;Prefix.
"\\(?:''''''\\|\"\"\"\"\"\"\\)" ; Empty triple-quote
"\\(?:\\('\\)'\\('\\)\\|\\(?2:\"\\)\"\\(?3:\"\\)\\)")
(3 (python-quote-syntax)))))