aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStefan Monnier2007-03-28 01:21:47 +0000
committerStefan Monnier2007-03-28 01:21:47 +0000
commit070f60e096db386cb716a246ae5e878ff35ccf28 (patch)
tree67a6f3ca15bbab2214bcf97d16291d1aad203d11 /lisp/progmodes/python.el
parent74cb3d2111ae0b87e7d7a20636a76a720a0771ed (diff)
downloademacs-070f60e096db386cb716a246ae5e878ff35ccf28.tar.gz
emacs-070f60e096db386cb716a246ae5e878ff35ccf28.zip
(python-mode): Skip comments when parsing.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 226d4bdc62d..1709428a611 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2225,6 +2225,7 @@ with skeleton expansions for compound statement templates.
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)