(Emacs/config)~Convert fsan compilation-error-regexp to an rx call

Looks a bit nicer, is Lispy.
This commit is contained in:
2024-09-23 16:43:01 +01:00
parent 1de66039c8
commit 0b4081677f

View File

@@ -3398,7 +3398,12 @@ a regular expression which captures file names and digits
:after cc-mode :after cc-mode
:config :config
(add-to-list 'compilation-error-regexp-alist-alist (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)) 1 3 4))
(add-to-list 'compilation-error-regexp-alist (add-to-list 'compilation-error-regexp-alist
'fsan)) 'fsan))