From: Takafumi Arakaki Date: Thu, 17 May 2012 03:03:41 +0000 (-0300) Subject: Treat empty triple quote X-Git-Tag: emacs-24.2.90~1199^2~494 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f1eba8b5e51ddaf4f9779271be20a8a75b4d7a0;p=emacs.git Treat empty triple quote Fix #70 --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4671d9f0f1a..7cfbb34aea3 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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)))))