diff options
author | David Barnett <davidbarnett2@gmail.com> | 2016-04-17 22:37:36 -0700 |
---|---|---|
committer | David Barnett <davidbarnett2@gmail.com> | 2016-04-17 22:49:49 -0700 |
commit | 946807898be444e824afeac548ab04ba3b2466ba (patch) | |
tree | 983555a2937052340febcfd2b9d858afe76b4844 | |
parent | ca280c28b464239de85152a2d1230bfc678f7358 (diff) | |
download | rneovim-946807898be444e824afeac548ab04ba3b2466ba.tar.gz rneovim-946807898be444e824afeac548ab04ba3b2466ba.tar.bz2 rneovim-946807898be444e824afeac548ab04ba3b2466ba.zip |
vim-patch:fc39ec (runtime/filetype.vim)
Update runtime files.
https://github.com/vim/vim/commit/fc39ecf8ded5466d7e9cbde8db75517718b023d8
Add remaining runtime/filetype.vim changes that were missing in 289588.
-rw-r--r-- | runtime/filetype.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9b3666b9c1..4b1767dbbc 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2015 Jun 06 +" Last Change: 2015 Aug 11 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -1164,7 +1164,7 @@ func! s:FTm() let n = 1 while n < 10 let line = getline(n) - if line =~ '^\s*\(#\s*\(include\|import\)\>\|/\*\|//\)' + if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\|//\)' setf objc return endif @@ -1332,7 +1332,7 @@ func! s:FTmm() let n = 1 while n < 10 let line = getline(n) - if line =~ '^\s*\(#\s*\(include\|import\)\>\|/\*\)' + if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)' setf objcpp return endif @@ -1855,7 +1855,7 @@ au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog') " Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc. " Gentoo ebuilds and Arch Linux PKGBUILDs are actually bash scripts -au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,.bash_aliases*,*.bash,*.ebuild,PKGBUILD* call SetFileTypeSH("bash") +au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass call SetFileTypeSH("bash") au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh") au BufNewFile,BufRead */etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1)) |