Mercurial > emacs
changeset 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 | 3693d2ee35b8 |
children | 45b86f4ac0f6 |
files | lisp/ChangeLog lisp/progmodes/python.el |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Mar 28 01:19:43 2007 +0000 +++ b/lisp/ChangeLog Wed Mar 28 01:21:47 2007 +0000 @@ -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.
--- 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)