From 4a9c71f96eae1e688e240ab566beeff3bc05e60a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 4 Apr 2024 13:47:55 -0400 Subject: [PATCH] fix(web): make *.((s[ac]|le)ss|styl) siblings of *.css I backported `find-sibling-file` in 198fe82 and included with it some rudimentary `find-sibling-rules` rules for CSS and its various preprocessor languages. The CSS rule made *.((s[ac]|le)ss|styl) files the siblings of *.css files, but not vice versa, so users couldn't jump back to the source file with `find-sibling-file`; a second rule is necessary. These may be combinable, considering `find-sibling-file` deletes the current buffer's filename from the list of candidates... Ref: 198fe82b6d49 --- modules/lang/web/+css.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/web/+css.el b/modules/lang/web/+css.el index 144670d42..2211abc50 100644 --- a/modules/lang/web/+css.el +++ b/modules/lang/web/+css.el @@ -8,7 +8,8 @@ be aligned. If set to `nil', disable all the above behaviors.") -(add-to-list 'find-sibling-rules '("/\\([^/]+\\)\\.\\(\\(s[ac]\\|le\\)ss\\|styl\\)\\'" "\\1\\.css")) +(add-to-list 'find-sibling-rules '("/\\([^/]+\\)\\.\\(\\(s[ac]\\|le\\)ss\\|styl\\)\\'" "\\1\\.css\\'")) +(add-to-list 'find-sibling-rules '("/\\([^/]+\\)\\.css\\'" "\\1\\.\\(\\(s[ac]\\|le\\)ss\\|styl\\)\\'")) ;;