diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-05-24 20:02:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-05-24 20:02:38 +0200 |
commit | 26852128a2b713ef49341a0c18daba928444e7eb (patch) | |
tree | 2bf91f7e6ffd93f3bc70646a733c96570d856327 /runtime/scripts.vim | |
parent | 2b2b8ae5ab37b04584633c469265d85825166905 (diff) | |
download | vim-git-26852128a2b713ef49341a0c18daba928444e7eb.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 5c136abbb..276382808 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: 2014 Aug 24 +" Last change: 2016 May 21 " 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 @@ -245,7 +245,8 @@ else set ft=xhtml " HTML (e.g.: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN") - elseif s:line1 =~? '\<DOCTYPE\s\+html\>' + " Avoid "doctype html", used by slim. + elseif s:line1 =~? '<!DOCTYPE\s\+html\>' set ft=html " PDF |