From: Barry Warsaw Date: Thu, 5 Feb 1998 23:35:09 +0000 (+0000) Subject: (py-parse-state): When looking for landing inside triple-quoted X-Git-Tag: v1.5.1~856 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1b3e89800f32dd17906202c28fccaee35afcfbc;p=python (py-parse-state): When looking for landing inside triple-quoted string, don't check for indentation at column zero. This will falsely hit a line inside a docstring that starts at column zero but ends in a colon. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 79ca83b4ad..36d4bb7ee6 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -2497,7 +2497,7 @@ local bindings to py-newline-and-indent.")) (save-excursion (setq pps (parse-partial-sexp (point) here))) ;; make sure we don't land inside a triple-quoted string - (setq done (or (zerop ci) + (setq done (or ;(zerop ci) (not (nth 3 pps)) (bobp))) )