commit:     8340095e5a8263494abadf5a81970ff92091e004
Author:     Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Sun Feb  5 13:17:54 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb  8 16:43:09 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8340095e

Enable syntax detection for make.conf as a directory

Technically, make.conf can be a directory, and I use it as
one :). Niche use case but works \o/

Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>
Closes: https://github.com/gentoo/gentoo-syntax/pull/54
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ftdetect/gentoo.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index b89f058..b2ed1bd 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -75,7 +75,7 @@ au BufNewFile,BufRead {*/thirdpartymirrors,*/portage/mirrors}
     \     set filetype=gentoo-mirrors
 
 " make.conf
-au BufNewFile,BufRead make.{conf,globals}
+au BufNewFile,BufRead {*/make.{conf,globals},*/portage/make.conf/*}
     \     set filetype=gentoo-make-conf
 
 " use.desc

Reply via email to