aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2016-05-29 23:04:55 -0400
committerTim Harder <radhermit@gentoo.org>2016-05-29 23:06:55 -0400
commit2355e6c5f50d14534d8885f8619f1d4241aa1596 (patch)
treec9786506203b89d2a7b238446c99edb9c68d3ce6 /ftdetect
parentmakefile: glob files instead of explicitly listing each one (diff)
downloadgentoo-syntax-2355e6c5f50d14534d8885f8619f1d4241aa1596.tar.gz
gentoo-syntax-2355e6c5f50d14534d8885f8619f1d4241aa1596.tar.bz2
gentoo-syntax-2355e6c5f50d14534d8885f8619f1d4241aa1596.zip
ftdetect: detect both runscript and openrc-run shebangs as init scriptsgentoo-syntax-2016053020160530
Fixes #6.
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/gentoo.vim2
1 files changed, 1 insertions, 1 deletions
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