mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.0-049
This commit is contained in:
parent
c4c25bfd12
commit
a8c4d5635c
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types in scripts
|
" Vim support file to detect file types in scripts
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last change: 2006 Mar 28
|
" Last change: 2006 Jul 08
|
||||||
|
|
||||||
" This file is called by an autocommand for every file that has just been
|
" This file is called by an autocommand for every file that has just been
|
||||||
" loaded into a buffer. It checks if the type of file can be recognized by
|
" loaded into a buffer. It checks if the type of file can be recognized by
|
||||||
@ -54,6 +54,12 @@ if s:line1 =~ "^#!"
|
|||||||
let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
|
let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" tcl scripts may have #!/bin/sh in the first line and "exec wish" in the
|
||||||
|
" third line. Suggested by Steven Atkinson.
|
||||||
|
if getline(3) =~ '^exec wish'
|
||||||
|
let s:name = 'wish'
|
||||||
|
endif
|
||||||
|
|
||||||
" Bourne-like shell scripts: bash bash2 ksh ksh93 sh
|
" Bourne-like shell scripts: bash bash2 ksh ksh93 sh
|
||||||
if s:name =~ '^\(bash\d*\|\|ksh\d*\|sh\)\>'
|
if s:name =~ '^\(bash\d*\|\|ksh\d*\|sh\)\>'
|
||||||
call SetFileTypeSH(s:line1) " defined in filetype.vim
|
call SetFileTypeSH(s:line1) " defined in filetype.vim
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
49,
|
||||||
/**/
|
/**/
|
||||||
48,
|
48,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user