]> granicus.if.org Git - python/commitdiff
(py-parse-state): When looking for landing inside triple-quoted
authorBarry Warsaw <barry@python.org>
Thu, 5 Feb 1998 23:35:09 +0000 (23:35 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 5 Feb 1998 23:35:09 +0000 (23:35 +0000)
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

index 79ca83b4adeeb9ac372f744c75d958fddcd7aac5..36d4bb7ee6486dc0e50a58a290ae47145a8ef988 100644 (file)
@@ -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)))
        )