comparison 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
comparison
equal deleted inserted replaced
76769:3693d2ee35b8 76770:e359709ed895
2223 ;; This probably isn't worth it. 2223 ;; This probably isn't worth it.
2224 ;; (font-lock-syntactic-face-function 2224 ;; (font-lock-syntactic-face-function
2225 ;; . python-font-lock-syntactic-face-function) 2225 ;; . python-font-lock-syntactic-face-function)
2226 )) 2226 ))
2227 (set (make-local-variable 'parse-sexp-lookup-properties) t) 2227 (set (make-local-variable 'parse-sexp-lookup-properties) t)
2228 (set (make-local-variable 'parse-sexp-ignore-comments) t)
2228 (set (make-local-variable 'comment-start) "# ") 2229 (set (make-local-variable 'comment-start) "# ")
2229 (set (make-local-variable 'indent-line-function) #'python-indent-line) 2230 (set (make-local-variable 'indent-line-function) #'python-indent-line)
2230 (set (make-local-variable 'indent-region-function) #'python-indent-region) 2231 (set (make-local-variable 'indent-region-function) #'python-indent-region)
2231 (set (make-local-variable 'paragraph-start) "\\s-*$") 2232 (set (make-local-variable 'paragraph-start) "\\s-*$")
2232 (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph) 2233 (set (make-local-variable 'fill-paragraph-function) 'python-fill-paragraph)