From d0774403fe96d88bd629d0825ffca46a1786d697 Mon Sep 17 00:00:00 2001 From: Graham Marlow Date: Sat, 26 Aug 2023 10:02:32 -0700 Subject: Add support for codes in error messages Modify the Clippy regexp to accept error codes, e.g. "error[E0407]". Co-authored-by: Eugeny Volobuev Co-authored-by: Graham Marlow --- flymake-clippy.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'flymake-clippy.el') diff --git a/flymake-clippy.el b/flymake-clippy.el index 7925362..e9dfffc 100644 --- a/flymake-clippy.el +++ b/flymake-clippy.el @@ -5,7 +5,7 @@ ;; Author: Graham Marlow ;; Keywords: tools ;; URL: https://sr.ht/~mgmarlow/flymake-clippy/ -;; Version: 1.0.0 +;; Version: 1.0.1 ;; Package-Requires: ((emacs "26.1")) ;; This program is free software; you can redistribute it and/or modify @@ -40,7 +40,9 @@ "Regexp for Clippy output." (rx (seq line-start ;; Message - (group (or "warning:" "error:") + (group (or "warning" "error") + (zero-or-one (seq "[" (repeat 5 alphanumeric) "]")) + ":" (zero-or-more nonl)) "\n" (zero-or-more nonl) -- cgit v1.2.3