summaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-08-25 03:04:18 +0000
committerBram Moolenaar <Bram@vim.org>2008-08-25 03:04:18 +0000
commit12b87e55bad8a9fb51b48dcf6e0287a5b62450b3 (patch)
treec8b3ffe7e7e485880e72253b84924d6ad85e9014 /runtime/scripts.vim
parent61c4e2cb89476fd114133eadad3f1bf8f2541596 (diff)
downloadvim-git-12b87e55bad8a9fb51b48dcf6e0287a5b62450b3.tar.gz
updated for version 7.2-006v7.2.006
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index 62ea472d4..d20ab09ad 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -234,6 +234,10 @@ else
elseif s:line1 =~ '\<DTD\s\+XHTML\s'
set ft=xhtml
+ " HTML (e.g.: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN")
+ elseif s:line1 =~? '\<DOCTYPE\s\+html\>'
+ set ft=html
+
" PDF
elseif s:line1 =~ '^%PDF-'
set ft=pdf