commit:     8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18
Author:     sluidfoe <sluidfoe <AT> gmail <DOT> com>
AuthorDate: Thu Sep 21 21:50:51 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 14 13:56:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8236f36b

ftdetect/gentoo.vim: detect init files by shebang

Use only the shebang/interpreter value to detect
/sbin/{openrc-run,runscript} files, do not only detect them underneath
a directory called "files."

Closes: https://github.com/gentoo/gentoo-syntax/pull/16

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

diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
index d5f6808..a7ae000 100644
--- a/ftdetect/gentoo.vim
+++ b/ftdetect/gentoo.vim
@@ -33,7 +33,7 @@ au BufNewFile,BufRead ChangeLog*
 au BufNewFile,BufRead /etc/init.d/*
     \     set filetype=gentoo-init-d |
 
-au BufNewFile,BufRead /*/files/*
+au BufNewFile,BufRead *
     \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") |
     \     set filetype=gentoo-init-d |
     \ endif

Reply via email to