diff options
| author | Takafumi Arakaki | 2012-05-17 00:03:41 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2012-05-17 00:03:41 -0300 |
| commit | 8f1eba8b5e51ddaf4f9779271be20a8a75b4d7a0 (patch) | |
| tree | 5d888136043b203ee18ba6d290d7174c1ec1fd21 | |
| parent | 1dae378f104041ce85135353038b749cf806c244 (diff) | |
| download | emacs-8f1eba8b5e51ddaf4f9779271be20a8a75b4d7a0.tar.gz emacs-8f1eba8b5e51ddaf4f9779271be20a8a75b4d7a0.zip | |
Treat empty triple quote
Fix #70
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 1 insertions, 0 deletions
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." | |||
| 465 | ;; string delimiters. Fixme: Is there a better way? | 465 | ;; string delimiters. Fixme: Is there a better way? |
| 466 | ;; First avoid a sequence preceded by an odd number of backslashes. | 466 | ;; First avoid a sequence preceded by an odd number of backslashes. |
| 467 | `((,(concat "\\(?:\\([RUru]\\)[Rr]?\\|^\\|[^\\]\\(?:\\\\.\\)*\\)" ;Prefix. | 467 | `((,(concat "\\(?:\\([RUru]\\)[Rr]?\\|^\\|[^\\]\\(?:\\\\.\\)*\\)" ;Prefix. |
| 468 | "\\(?:''''''\\|\"\"\"\"\"\"\\)" ; Empty triple-quote | ||
| 468 | "\\(?:\\('\\)'\\('\\)\\|\\(?2:\"\\)\"\\(?3:\"\\)\\)") | 469 | "\\(?:\\('\\)'\\('\\)\\|\\(?2:\"\\)\"\\(?3:\"\\)\\)") |
| 469 | (3 (python-quote-syntax))))) | 470 | (3 (python-quote-syntax))))) |
| 470 | 471 | ||