emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode a871d10 390/486: Merge pull request #298 from jj


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode a871d10 390/486: Merge pull request #298 from jjwest/master
Date: Sat, 7 Aug 2021 09:25:59 -0400 (EDT)

branch: elpa/rust-mode
commit a871d108c745276e93ff1dec7c65e2e5a57e6d8c
Merge: 06f1c68 63deaf3
Author: Felix S Klock II <pnkfelix@pnkfx.org>
Commit: GitHub <noreply@github.com>

    Merge pull request #298 from jjwest/master
    
    Add compilation mode warning face
---
 rust-mode.el | 5 ++---
 1 file 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.")
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]