diff options
author | sluidfoe <sluidfoe@gmail.com> | 2017-09-21 16:50:51 -0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-08-14 15:56:55 +0200 |
commit | 8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18 (patch) | |
tree | 520ade85053b244b07a32b1422c4c6082e4e011f /ftdetect | |
parent | plugin: newglep to fill GLEP skeleton in (diff) | |
download | gentoo-syntax-8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.tar.gz gentoo-syntax-8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.tar.bz2 gentoo-syntax-8236f36bc4ba12104bbf06b1f5ea03e8c4ff2c18.zip |
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
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/gentoo.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |