/[emacs]/emacs/lisp/progmodes/python.el
ViewVC logotype

Diff of /emacs/lisp/progmodes/python.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by eliz, Sat Jun 12 10:26:37 2004 UTC revision 1.17 by rms, Fri Jul 2 23:49:50 2004 UTC
# Line 710  Accounts for continuation lines, multi-l Line 710  Accounts for continuation lines, multi-l
710  expressions."  expressions."
711    (beginning-of-line)    (beginning-of-line)
712    (python-beginning-of-string)    (python-beginning-of-string)
713    (while (python-continuation-line-p)    (catch 'foo
714      (beginning-of-line)      (while (python-continuation-line-p)
715      (if (python-backslash-continuation-line-p)        (beginning-of-line)
716          (while (python-backslash-continuation-line-p)        (if (python-backslash-continuation-line-p)
717            (forward-line -1))            (while (python-backslash-continuation-line-p)
718        (python-beginning-of-string)              (forward-line -1))
719        ;; Skip forward out of nested brackets.          (python-beginning-of-string)
720        (condition-case ()                ; beware invalid syntax          ;; Skip forward out of nested brackets.
721            (progn (backward-up-list (syntax-ppss-depth (syntax-ppss))) t)          (condition-case ()              ; beware invalid syntax
722          (error (end-of-line)))))              (progn (backward-up-list (syntax-ppss-depth (syntax-ppss))) t)
723              (error (throw 'foo nil))))))
724    (back-to-indentation))    (back-to-indentation))
725    
726  (defun python-end-of-statement ()  (defun python-end-of-statement ()

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26