diff options
| author | Georg Brandl <georg@python.org> | 2015-07-15 13:11:16 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2015-08-23 22:10:13 +0200 |
| commit | 30d1dac40d84c96f1f84615bbfec0d0117ed1150 (patch) | |
| tree | ef37cd062b24360cf8f9e255baaf7e2395bd6911 | |
| parent | c801ddadaee1dba8fd4d6434edb5f7e107a31935 (diff) | |
| download | rust-mode-30d1dac40d84c96f1f84615bbfec0d0117ed1150.tar.gz | |
Recognize compiler help and notes as "info" messages
Otherwise they will be matched as errors by less-specific regexps
built into compilation mode.
| -rw-r--r-- | rust-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust-mode.el b/rust-mode.el index 4ba4c7c..cc4958f 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -1173,11 +1173,11 @@ This is written mainly to be used as `end-of-defun-function' for Rust." (start-col "\\([0-9]+\\)") (end-line "\\([0-9]+\\)") (end-col "\\([0-9]+\\)") - (error-or-warning "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\)")) + (msg-type "\\(?:[Ee]rror\\|\\([Ww]arning\\)\\|\\([Nn]ote\\|[Hh]elp\\)\\)")) (let ((re (concat "^" file ":" start-line ":" start-col ": " end-line ":" end-col - " " error-or-warning ":"))) - (cons re '(1 (2 . 4) (3 . 5) (6))))) + " " msg-type ":"))) + (cons re '(1 (2 . 4) (3 . 5) (6 . 7))))) "Specifications for matching errors in rustc invocations. See `compilation-error-regexp-alist' for help on their format.") |
