mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(python-mode): Skip comments when parsing.
This commit is contained in:
parent
74cb3d2111
commit
070f60e096
2 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue