summaryrefslogtreecommitdiffstats
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-09-30 21:47:56 +0200
committerBram Moolenaar <Bram@vim.org>2010-09-30 21:47:56 +0200
commit4a74803ef837eeb4d4fc799ac9a26fc93e584111 (patch)
tree49d3d0a083a47078ae42a3b353a691e005d71ab6 /runtime/scripts.vim
parentc2a406b3179af3a77fb059288ead7266cdce2ac8 (diff)
Runtime file updates.
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index e30b5c43fb..75275785fb 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: 2010 Jul 29
+" Last change: 2010 Sep 22
" 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
@@ -168,7 +168,8 @@ else
call SetFileTypeSH(s:line1) " defined in filetype.vim
" Z shell scripts
- elseif s:line1 =~ '^#compdef\>' || s:line1 =~ '^#autoload\>'
+ elseif s:line1 =~ '^#compdef\>' || s:line1 =~ '^#autoload\>' ||
+ \ "\n".s:line1."\n".s:line2."\n".s:line3."\n".s:line4."\n".s:line5 =~ '\n\s*emulate\s\+\%(-[LR]\s\+\)\=[ckz]\=sh\>'
set ft=zsh
" ELM Mail files