Skip to content

Commit a871d10

Browse files
authored
Merge pull request #298 from jjwest/master
Add compilation mode warning face
2 parents 06f1c68 + 63deaf3 commit a871d10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust-mode.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,9 +1610,8 @@ This is written mainly to be used as `end-of-defun-function' for Rust."
16101610
(let ((file "\\([^\n]+\\)")
16111611
(start-line "\\([0-9]+\\)")
16121612
(start-col "\\([0-9]+\\)"))
1613-
(let ((re (concat "^ *--> " file ":" start-line ":" start-col ; --> 1:2:3
1614-
)))
1615-
(cons re '(1 2 3))))
1613+
(let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)")))
1614+
(cons re '(3 4 5 (1) 2))))
16161615
"Specifications for matching errors in rustc invocations.
16171616
See `compilation-error-regexp-alist' for help on their format.")
16181617

0 commit comments

Comments
 (0)