Skip to content

Commit 6dd3738

Browse files
author
Matija Obid
committed
fixed stop-at regex
1 parent b45ede0 commit 6dd3738

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

haskell-debug.el

+4-6
Original file line numberDiff line numberDiff line change
@@ -531,15 +531,13 @@ some old history, then display that."
531531
(point-max)))))))))
532532

533533
(defun haskell-debug-parse-stopped-at (string)
534-
"Parse the location stopped at from the given string.
534+
"Parse the location stopped at from the given STRING.
535535
536-
For example:
536+
For examples:
537537
538538
Stopped at /home/foo/project/src/x.hs:6:25-36
539-
540-
"
541-
(let ((index (string-match "Stopped at \\([^:]+\\):\\(.+\\)\n?"
542-
string)))
539+
Stopped in X.test, /home/foo/project/src/x.hs:6:25-36"
540+
(let ((index (string-match "Stopped \\(?:at\\|in [^,]+,\\) \\([^:]+\\):\\(.+\\)\n?" string)))
543541
(when index
544542
(list :path (match-string 1 string)
545543
:span (haskell-debug-parse-span (match-string 2 string))

0 commit comments

Comments
 (0)