mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
(py-compute-indentation): Use forward-comment to skip over all
whitespace and comment noise.
This commit is contained in:
parent
ac36c6403f
commit
77d1fce2f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue