summaryrefslogtreecommitdiffstats
path: root/Misc/python-mode.el
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-04-16 20:04:59 (GMT)
committerBarry Warsaw <barry@python.org>1998-04-16 20:04:59 (GMT)
commit77d1fce2f651e98e68506cc2ce7321bed7036850 (patch)
treeebe400494ce733ccca2bfe6d6c752cdfa31f739a /Misc/python-mode.el
parentac36c6403ff78b5f48c3dde7626806de87cfff0c (diff)
downloadcpython-77d1fce2f651e98e68506cc2ce7321bed7036850.zip
cpython-77d1fce2f651e98e68506cc2ce7321bed7036850.tar.gz
cpython-77d1fce2f651e98e68506cc2ce7321bed7036850.tar.bz2
(py-compute-indentation): Use forward-comment to skip over all
whitespace and comment noise.
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r--Misc/python-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 5dcd532..0262210 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -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)