]> git.eshelyaron.com Git - emacs.git/commitdiff
Match Python 3 code object names in "M-x pdb"
authorStefan Kangas <stefankangas@gmail.com>
Mon, 9 Sep 2019 02:14:50 +0000 (04:14 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 9 Sep 2019 02:33:07 +0000 (04:33 +0200)
* lisp/progmodes/gud.el (gud-pdb-marker-regexp): Match Python 3 code
object names.  (Bug#11679)

lisp/progmodes/gud.el

index 30d4b199110dd1cad024fff18c37b710131ba720..235546ef2e47d3b0446c135c096fd48ae791f095 100644 (file)
@@ -1610,7 +1610,9 @@ and source-file directory for your debugger."
 ;; characters we match in the file name shown in the prompt.
 ;; (Of course, this matches the "<string>" case too.)
 (defvar gud-pdb-marker-regexp
-  "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|<module>\\)()\\(->[^\n\r]*\\)?[\n\r]")
+  (concat "^> \\([[:graph:] \\]*\\)(\\([0-9]+\\))\\([a-zA-Z0-9_]*\\|\\?\\|"
+          "<\\(?:module\\|listcomp\\|dictcomp\\|setcomp\\|genexpr\\|lambda\\|\\)>"
+          "\\)()\\(->[^\n\r]*\\)?[\n\r]"))
 
 (defvar gud-pdb-marker-regexp-file-group 1)
 (defvar gud-pdb-marker-regexp-line-group 2)