diff lisp/progmodes/python.el @ 76770:e359709ed895

(python-mode): Skip comments when parsing.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 28 Mar 2007 01:21:47 +0000
parents 6e293ce14a97
children 3ae6fc8b3d2c 4ef881a120fe
line wrap: on
line diff
--- a/lisp/progmodes/python.el	Wed Mar 28 01:19:43 2007 +0000
+++ b/lisp/progmodes/python.el	Wed Mar 28 01:21:47 2007 +0000
@@ -2225,6 +2225,7 @@
 				   ;;  . python-font-lock-syntactic-face-function)
 				   ))
   (set (make-local-variable 'parse-sexp-lookup-properties) t)
+  (set (make-local-variable 'parse-sexp-ignore-comments) t)
   (set (make-local-variable 'comment-start) "# ")
   (set (make-local-variable 'indent-line-function) #'python-indent-line)
   (set (make-local-variable 'indent-region-function) #'python-indent-region)