From f1b3e89800f32dd17906202c28fccaee35afcfbc Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 5 Feb 1998 23:35:09 +0000 Subject: (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. --- Misc/python-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 79ca83b..36d4bb7 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))) ) -- cgit v0.12