From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E40E81381F2 for ; Mon, 30 May 2016 03:09:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2824D21C028; Mon, 30 May 2016 03:09:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BB0D121C028 for ; Mon, 30 May 2016 03:09:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0AC70340B29 for ; Mon, 30 May 2016 03:09:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7618A971 for ; Mon, 30 May 2016 03:09:20 +0000 (UTC) From: "Tim Harder" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tim Harder" Message-ID: <1464577615.2355e6c5f50d14534d8885f8619f1d4241aa1596.radhermit@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: ftdetect/gentoo.vim X-VCS-Directories: ftdetect/ X-VCS-Committer: radhermit X-VCS-Committer-Name: Tim Harder X-VCS-Revision: 2355e6c5f50d14534d8885f8619f1d4241aa1596 X-VCS-Branch: master Date: Mon, 30 May 2016 03:09:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 70938997-0834-49ab-8044-286c23de6e13 X-Archives-Hash: 99e879be36b83ef33d487a5d7c8717c5 commit: 2355e6c5f50d14534d8885f8619f1d4241aa1596 Author: Tim Harder gentoo org> AuthorDate: Mon May 30 03:04:55 2016 +0000 Commit: Tim Harder gentoo 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