public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/
@ 2016-05-30  3:09 99% Tim Harder
  0 siblings, 0 replies; 1+ results
From: Tim Harder @ 2016-05-30  3:09 UTC (permalink / raw
  To: gentoo-commits

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
 


^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-05-30  3:09 99% [gentoo-commits] proj/gentoo-syntax:master commit in: ftdetect/ Tim Harder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox