Andreas> Herewith the patch Andreas> Introduced an additional check for being not-in-string:
Andreas> (not (numberp (nth 3 state))) Andreas> Thanks Andreas> Andreas Röhler Andreas> diff -u -b /old/python-mode.el /new/python-mode.el Andreas> --- /old/python-mode.el 2008-05-07 08:05:55.000000000 +0200 Andreas> +++ /new/python-mode.el 2008-05-08 15:28:35.000000000 +0200 Andreas> @@ -3522,7 +3522,7 @@ Andreas> (setq searching nil) ; search is done either way Andreas> (setq state (parse-partial-sexp start Andreas> (match-beginning 0))) Andreas> - (setq answer (not (nth 4 state))))) Andreas> + (setq answer (and (not (numberp (nth 3 state)))(not (nth 4 state)))))) Andreas> ;; search failed: couldn't find another interesting colon Andreas> (setq searching nil))) Andreas> answer))) Exactly what problem does that additional check solve? I admit freely that my Lisp-ish knowledge ain't what it used to be, and it was never all that good to begin with. Thanks, Skip _______________________________________________ Python-mode mailing list Python-mode@python.org http://mail.python.org/mailman/listinfo/python-mode