summaryrefslogtreecommitdiff
path: root/rust-mode.el
diff options
context:
space:
mode:
authorFelix S Klock II <pnkfelix@pnkfx.org>2019-03-04 14:36:24 +0100
committerGitHub <noreply@github.com>2019-03-04 14:36:24 +0100
commita871d108c745276e93ff1dec7c65e2e5a57e6d8c (patch)
treedd21f3bfdd6b9e34ebfc08b2a013222a9c89eaea /rust-mode.el
parent06f1c6816c6291a71d636f2fbb9fd67a5c8d28c4 (diff)
parent63deaf385a632bb6e289ebd99ebd4dc136621084 (diff)
downloadrust-mode-a871d108c745276e93ff1dec7c65e2e5a57e6d8c.tar.gz
Merge pull request #298 from jjwest/master
Add compilation mode warning face
Diffstat (limited to 'rust-mode.el')
-rw-r--r--rust-mode.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/rust-mode.el b/rust-mode.el
index 3585f1d..4ded41a 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1610,9 +1610,8 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
(let ((file "\\([^\n]+\\)")
(start-line "\\([0-9]+\\)")
(start-col "\\([0-9]+\\)"))
- (let ((re (concat "^ *--> " file ":" start-line ":" start-col ; --> 1:2:3
- )))
- (cons re '(1 2 3))))
+ (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)")))
+ (cons re '(3 4 5 (1) 2))))
"Specifications for matching errors in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")