(Emacs/config)~Convert fsan compilation-error-regexp to an rx call
Looks a bit nicer, is Lispy.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user