aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-09-23 16:43:01 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-09-23 16:43:01 +0100
commit0b4081677f3557bb655726e1e8d9c5ff678b2200 (patch)
treee772bff4fcdbcca5d8cb3514094e77adfb548301 /Emacs/.config/emacs/config.org
parent1de66039c8ec4e35eb046240123d3acc66519fe8 (diff)
downloaddotfiles-0b4081677f3557bb655726e1e8d9c5ff678b2200.tar.gz
dotfiles-0b4081677f3557bb655726e1e8d9c5ff678b2200.tar.bz2
dotfiles-0b4081677f3557bb655726e1e8d9c5ff678b2200.zip
(Emacs/config)~Convert fsan compilation-error-regexp to an rx call
Looks a bit nicer, is Lispy.
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-rw-r--r--Emacs/.config/emacs/config.org7
1 files changed, 6 insertions, 1 deletions
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))