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

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

[nongnu] elpa/rust-mode 31b8453 361/486: update to include line number a


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode 31b8453 361/486: update to include line number and column information
Date: Sat, 7 Aug 2021 09:25:53 -0400 (EDT)

branch: elpa/rust-mode
commit 31b8453aa5831b775d4dfcb8f957f9c16d67151e
Author: Niko Matsakis <niko@alum.mit.edu>
Commit: Niko Matsakis <niko@alum.mit.edu>

    update to include line number and column information
---
 rust-mode.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index cbf170e..360943d 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1585,10 +1585,12 @@ This is written mainly to be used as 
`end-of-defun-function' for Rust."
 See `compilation-error-regexp-alist' for help on their format.")
 
 (defvar rustc-colon-compilation-regexps
-  (let ((file "\\([^\n]+\\)"))
-    (let ((re (concat "^ *::: " file ; ::: foo/bar.rs
+  (let ((file "\\([^\n]+\\)")
+        (start-line "\\([0-9]+\\)")
+        (start-col  "\\([0-9]+\\)"))
+    (let ((re (concat "^ *::: " file ":" start-line ":" start-col ; ::: 
foo/bar.rs
                       )))
-      (cons re '(1))))
+      (cons re '(1 2 3))))
   "Specifications for matching `:::` hints 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]