From 0b4081677f3557bb655726e1e8d9c5ff678b2200 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Sep 2024 16:43:01 +0100 Subject: (Emacs/config)~Convert fsan compilation-error-regexp to an rx call Looks a bit nicer, is Lispy. --- Emacs/.config/emacs/config.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 12e4fd6..d154d71 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -3398,7 +3398,12 @@ a regular expression which captures file names and digits :after cc-mode :config (add-to-list 'compilation-error-regexp-alist-alist - '(fsan "^ #[[:digit:]] 0x[[:alnum:]]+ in .*? \\(.*.c\\(pp\\)?\\):\\([[:digit:]]+\\)" + `(fsan ,(rx (seq + line-start " #" digit " 0x" (one-or-more hex) " in " + (1+ word) " " + (group (seq (* any) (or ".c" ".cpp"))) ":" + (group (+ digit)))) + 1 3 4)) (add-to-list 'compilation-error-regexp-alist 'fsan)) -- cgit v1.2.3-13-gbd6f