diff Misc/python-mode.el @ 8070:4a2f1c69fde8 legacy-trunk

(py-compute-indentation): Use forward-comment to skip over all whitespace and comment noise.
author Barry Warsaw <barry@python.org>
date Thu, 16 Apr 1998 20:04:59 +0000
parents 72d9961540d8
children f2b0859fece3
line wrap: on
line diff
--- a/Misc/python-mode.el	Thu Apr 16 16:44:33 1998 +0000
+++ b/Misc/python-mode.el	Thu Apr 16 20:04:59 1998 +0000
@@ -1592,7 +1592,7 @@
 			   (/= 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)