]> granicus.if.org Git - python/commitdiff
(py-compute-indentation): Use forward-comment to skip over all
authorBarry Warsaw <barry@python.org>
Thu, 16 Apr 1998 20:04:59 +0000 (20:04 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 16 Apr 1998 20:04:59 +0000 (20:04 +0000)
whitespace and comment noise.

Misc/python-mode.el

index 5dcd53285c1523ad080bab4bb60646f93621bc91..0262210670695fad2f82154d179dce1a567f3794 100644 (file)
@@ -1592,7 +1592,7 @@ the new line indented."
                           (/= startpos
                               (save-excursion
                                 (goto-char (1+ open-bracket-pos))
-                                (skip-chars-forward " \t\n")
+                                (forward-comment (point-max))
                                 (point))))
                      ;; again mimic the first list item
                      (current-indentation)