summaryrefslogtreecommitdiffstats
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-02 19:12:26 +0000
commitd4755bb0e04fca334675f1503bd6474b017a9bba (patch)
tree8be8df859191e78ee9eef80d3b341fd5d0c1b81b /runtime/scripts.vim
parent269ec658f0fad22b2bf9f71b06a4e6e10277f0e5 (diff)
updated for version 7.0014
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 1b506b3f6a..07d04ff075 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types in scripts
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2004 Apr 18
+" Last change: 2004 Sep 02
" 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
@@ -50,8 +50,8 @@ if s:line1 =~ "^#!"
let s:name = substitute(s:line1, '^#!\s*\S*[/\\]\(\i\+\).*', '\1', '')
endif
- " Bourne-like shell scripts: sh ksh bash bash2
- if s:name =~ '^\(bash\|bash2\|ksh\|sh\)\>'
+ " Bourne-like shell scripts: bash bash2 ksh ksh93 sh
+ if s:name =~ '^\(bash\d*\|\|ksh\d*\|sh\)\>'
call SetFileTypeSH(s:line1) " defined in filetype.vim
" csh scripts
@@ -219,7 +219,7 @@ else
set ft=rcslog
" CVS commit
- elseif s:line2 =~ '^CVS:'
+ elseif s:line2 =~ '^CVS:' || getline("$") =~ '^CVS: '
set ft=cvs
" Send-pr