From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4A69D138334 for ; Tue, 14 Aug 2018 13:57:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3C27AE08A2; Tue, 14 Aug 2018 13:57:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11FBDE08A2 for ; Tue, 14 Aug 2018 13:57:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0796F335C7D for ; Tue, 14 Aug 2018 13:57:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 629E537A for ; Tue, 14 Aug 2018 13:57:30 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1534255015.8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.mgorny@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: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18 X-VCS-Branch: master Date: Tue, 14 Aug 2018 13:57:30 +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: 64210819-b2f3-43f4-8ecc-c23daa88fd9d X-Archives-Hash: 3fcdcd95a8c70d37eaf53ac7e0aa0a75 commit: 8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18 Author: sluidfoe gmail com> AuthorDate: Thu Sep 21 21:50:51 2017 +0000 Commit: Michał Górny gentoo 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