Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77d1fce

Browse files
committed
(py-compute-indentation): Use forward-comment to skip over all
whitespace and comment noise.
1 parent ac36c64 commit 77d1fce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Misc/python-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ the new line indented."
15921592
(/= startpos
15931593
(save-excursion
15941594
(goto-char (1+ open-bracket-pos))
1595-
(skip-chars-forward " \t\n")
1595+
(forward-comment (point-max))
15961596
(point))))
15971597
;; again mimic the first list item
15981598
(current-indentation)

0 commit comments

Comments
 (0)