diff options
author | Barry Warsaw <barry@python.org> | 1998-02-05 23:35:09 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-02-05 23:35:09 (GMT) |
commit | f1b3e89800f32dd17906202c28fccaee35afcfbc (patch) | |
tree | 7057a6e1925b5064330c8d8746d880c24d716ef1 | |
parent | 8f972b762a7e378acb3660f8d11b7e2808602f06 (diff) | |
download | cpython-f1b3e89800f32dd17906202c28fccaee35afcfbc.zip cpython-f1b3e89800f32dd17906202c28fccaee35afcfbc.tar.gz cpython-f1b3e89800f32dd17906202c28fccaee35afcfbc.tar.bz2 |
(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.
-rw-r--r-- | Misc/python-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
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))) ) |