Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
Date: Mon, 30 May 2016 03:09:27
Message-Id: 1464577615.2355e6c5f50d14534d8885f8619f1d4241aa1596.radhermit@gentoo
1 commit: 2355e6c5f50d14534d8885f8619f1d4241aa1596
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 03:04:55 2016 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 03:06:55 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2355e6c5
7
8 ftdetect: detect both runscript and openrc-run shebangs as init scripts
9
10 Fixes #6.
11
12 ftdetect/gentoo.vim | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/ftdetect/gentoo.vim b/ftdetect/gentoo.vim
16 index ba425fe..305d567 100644
17 --- a/ftdetect/gentoo.vim
18 +++ b/ftdetect/gentoo.vim
19 @@ -34,7 +34,7 @@ au BufNewFile,BufRead /etc/init.d/*
20 \ set filetype=gentoo-init-d |
21
22 au BufNewFile,BufRead /*/files/*
23 - \ if (getline(1) ==? "#!/sbin/runscript") |
24 + \ if (getline(1) =~? "#!/sbin/\\(runscript\\|openrc-run\\)") |
25 \ set filetype=gentoo-init-d |
26 \ endif