commit: 2355e6c5f50d14534d8885f8619f1d4241aa1596 Author: Tim Harder <radhermit <AT> gentoo <DOT> org> AuthorDate: Mon May 30 03:04:55 2016 +0000 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> CommitDate: Mon May 30 03:06:55 2016 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2355e6c5
ftdetect: detect both runscript and openrc-run shebangs as init scripts Fixes #6. ftdetect/gentoo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim index ba425fe..305d567 100644 --- a/ftdetect/gentoo.vim +++ b/ftdetect/gentoo.vim @@ -34,7 +34,7 @@ au BufNewFile,BufRead /etc/init.d/* \ set filetype=gentoo-init-d | au BufNewFile,BufRead /*/files/* - \ if (getline(1) ==? "#!/sbin/runscript") | + \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") | \ set filetype=gentoo-init-d | \ endif