diff options
author | Brandon Maier <brandon.maier@collins.com> | 2024-02-15 00:16:02 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-15 00:17:05 +0100 |
commit | d00fb4b3a237b375de5a1f453c8453b8b3797d51 (patch) | |
tree | 98b8af458abc1b1b2d89201ad7a595cb4b4583a0 /runtime | |
parent | 5f20f050efed3431beaf85739f0113e9ef0abd8e (diff) |
patch 9.1.0111: filetype: no support for bats filesv9.1.0111
The '*.bats' file type is for Bash Automated Testing System (BATS)
scripts. BATS scripts are Bash with a special '@test' extension but they
otherwise work with Vim's bash filetype.
See https://github.com/bats-core/bats-core
closes: #14039
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 5ae632be99..aa8f4da772 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2008,7 +2008,7 @@ au BufNewFile,BufRead catalog setf catalog " 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[-.],*.ebuild,*.bash,*.eclass,PKGBUILD,APKBUILD call dist#ft#SetFileTypeSH("bash") +au BufNewFile,BufRead .bashrc,bashrc,bash.bashrc,.bash[_-]profile,.bash[_-]logout,.bash[_-]aliases,bash-fc[-.],*.ebuild,*.bash,*.eclass,PKGBUILD,APKBUILD,*.bats call dist#ft#SetFileTypeSH("bash") au BufNewFile,BufRead .kshrc,*.ksh call dist#ft#SetFileTypeSH("ksh") au BufNewFile,BufRead */etc/profile,.profile,*.sh,*.env call dist#ft#SetFileTypeSH(getline(1)) |