summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-08-15 17:36:19 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-08-15 17:36:19 -0400
commitd2e57a93743efc73928b6dfdc5e7574af938923b (patch)
tree601bf8395a609baa2a98ecb9e915a2411ad7dde3 /rust-mode.el
parent40c33fd71d87e10776d86f15f35c4fb2a2202879 (diff)
downloadrust-mode-d2e57a93743efc73928b6dfdc5e7574af938923b.tar.gz
fix regex to account for `[E123]`
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el
index b0f8379..711bf20 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1413,7 +1413,7 @@ See `compilation-error-regexp-alist' for help on their format.")
(let ((start-of-error
(save-excursion
(beginning-of-line)
- (while (not (looking-at "^[a-z]+:"))
+ (while (not (looking-at "^[a-z]+:\\|^[a-z]+\\[E[0-9]+\\]:"))
(forward-line -1))
(point))))
(set-window-start (selected-window) start-of-error))))))