diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-11-02 18:19:06 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-11-02 18:19:15 +0100 |
commit | 0738ad654d4f2f89b77dcb4197011a293e4dfcf3 (patch) | |
tree | 25de763b5adbc53b997085bcf8f49d6b09a45cd0 /extras/filetype.vim | |
parent | 05e21a9e252b283b2d71568ad3b671d7f28fe0bc (diff) | |
download | vim-polyglot-0738ad654d4f2f89b77dcb4197011a293e4dfcf3.tar.gz vim-polyglot-0738ad654d4f2f89b77dcb4197011a293e4dfcf3.zip |
Update
Diffstat (limited to 'extras/filetype.vim')
-rw-r--r-- | extras/filetype.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/extras/filetype.vim b/extras/filetype.vim index feb30448..f1893ee3 100644 --- a/extras/filetype.vim +++ b/extras/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2020 Sep 30 +" Last Change: 2020 Oct 24 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -1506,9 +1506,10 @@ au BufNewFile,BufRead *.decl,*.dcl,*.dec au BufNewFile,BufRead catalog setf catalog " Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc. -" Gentoo ebuilds and Arch Linux PKGBUILDs are actually bash scripts +" Gentoo ebuilds, Arch Linux PKGBUILDs and Alpine Linux APKBUILDs are actually +" bash scripts. " NOTE: Patterns ending in a star are further down, these have lower priority. -au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD call polyglot#ft#SetFileTypeSH("bash") +au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass,PKGBUILD,APKBUILD call polyglot#ft#SetFileTypeSH("bash") au BufNewFile,BufRead .kshrc,*.ksh call polyglot#ft#SetFileTypeSH("ksh") au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call polyglot#ft#SetFileTypeSH(getline(1)) @@ -2161,7 +2162,7 @@ au BufNewFile,BufRead .reminders* call s:StarSetf('remind') au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') " Shell scripts ending in a star -au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,,PKGBUILD* call polyglot#ft#SetFileTypeSH("bash") +au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,bash-fc[-.]*,PKGBUILD*,APKBUILD* call polyglot#ft#SetFileTypeSH("bash") au BufNewFile,BufRead .kshrc* call polyglot#ft#SetFileTypeSH("ksh") au BufNewFile,BufRead .profile* call polyglot#ft#SetFileTypeSH(getline(1)) |