]> granicus.if.org Git - python/commitdiff
(py-traceback-line-re): Relaxation of regexp to catch SyntaxErrors.
authorBarry Warsaw <barry@python.org>
Thu, 27 Nov 1997 20:08:14 +0000 (20:08 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 27 Nov 1997 20:08:14 +0000 (20:08 +0000)
Harri Pasanen.

Misc/python-mode.el

index 70faf2c5ed0724e4be1b095c2b0f26f751a19c6f..f7448f1f8cb95db788ce63192f9eceb087f9583e 100644 (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]+\\)")
 
 
 \f
@@ -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"))))
 
 \f
 ;; Electric deletion