]> git.eshelyaron.com Git - emacs.git/commitdiff
Treat empty triple quote
authorTakafumi Arakaki <aka.tkf@gmail.com>
Thu, 17 May 2012 03:03:41 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Thu, 17 May 2012 03:03:41 +0000 (00:03 -0300)
Fix #70

lisp/progmodes/python.el

index 4671d9f0f1aa66a06a658e5f93fbf7f84c7a65a4..7cfbb34aea398c2088e182e8008532c5fff520b8 100644 (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)))))