(python-mode): Skip comments when parsing.

This commit is contained in:
Stefan Monnier 2007-03-28 01:21:47 +00:00
parent 74cb3d2111
commit 070f60e096
2 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,7 @@
2007-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/python.el (python-mode): Skip comments when parsing.
* vc-arch.el (vc-with-current-file-buffer): New macro.
(vc-arch-file-source-p): Use it to avoid infloop.

View file

@ -2225,6 +2225,7 @@ with skeleton expansions for compound statement templates.
;; . 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)