(py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors.

Harri Pasanen.
This commit is contained in:
Barry Warsaw 1997-11-27 20:08:14 +00:00
parent 73ec2c0081
commit ffbc17da19
1 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ Currently-active file is at the head of the list.")
;; Regexp that describes tracebacks
(defconst py-traceback-line-re
"[ \t]+File \"\\([^\"]+\\)\", line \\([0-9]+\\), in ")
"[ \t]+File \"\\([^\"]+\\)\", line \\([0-9]+\\)")
@ -1242,7 +1242,7 @@ exception in the exception stack."
(buffer (if proc "*Python*" py-output-buffer)))
(if top
(py-find-next-exception 'bob buffer 're-search-forward "Top")
(py-find-next-exception 'boi buffer 're-search-backward "Top"))))
(py-find-next-exception 'bol buffer 're-search-backward "Top"))))
;; Electric deletion