Commit 7a58580c authored by Barry Warsaw's avatar Barry Warsaw

(py-compute-indentation): Use forward-comment to skip over all

whitespace and comment noise.
parent e995c0e0
...@@ -1592,7 +1592,7 @@ the new line indented." ...@@ -1592,7 +1592,7 @@ the new line indented."
(/= startpos (/= startpos
(save-excursion (save-excursion
(goto-char (1+ open-bracket-pos)) (goto-char (1+ open-bracket-pos))
(skip-chars-forward " \t\n") (forward-comment (point-max))
(point)))) (point))))
;; again mimic the first list item ;; again mimic the first list item
(current-indentation) (current-indentation)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment