diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-03-03 11:46:59 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-03-03 11:48:22 -0500 |
| commit | 31b8453aa5831b775d4dfcb8f957f9c16d67151e (patch) | |
| tree | d1850e8e89c8d3f6808fcbbfc7261c62349b8edb /rust-mode.el | |
| parent | 3ced18778171f622b06614310693966fcb60a15b (diff) | |
| download | rust-mode-31b8453aa5831b775d4dfcb8f957f9c16d67151e.tar.gz | |
update to include line number and column information
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 8 |
1 files 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.") |
