public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
Date: Tue, 14 Aug 2018 13:57:30 +0000 (UTC)	[thread overview]
Message-ID: <1534255015.8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.mgorny@gentoo> (raw)

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	other threads:[~2018-08-14 13:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14 13:57 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-08 16:43 [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/ Michał Górny
2021-02-07  0:29 Vadim Misbakh-Soloviov
2021-02-07  0:29 Vadim Misbakh-Soloviov
2021-02-07  0:29 Vadim Misbakh-Soloviov
2018-08-14 13:55 Michał Górny
2018-08-14 13:55 Michał Górny
2016-05-30  3:09 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1534255015.8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox