aboutsummaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-24 13:17:41 +0200
committerGitHub <noreply@github.com>2016-10-24 13:17:41 +0200
commitfb503d73da49e26a3e44a07cd7c857d9fda9d035 (patch)
treed7f30d325c9649b4bfa9bf6d6823eddf882aeb25 /runtime/scripts.vim
parent43309d1993a9affc8d6b73fbd4721e6256c28712 (diff)
parentc91a0dca02fda46c4b4edbbdfab1a191b2e4fcbd (diff)
downloadrneovim-fb503d73da49e26a3e44a07cd7c857d9fda9d035.tar.gz
rneovim-fb503d73da49e26a3e44a07cd7c857d9fda9d035.tar.bz2
rneovim-fb503d73da49e26a3e44a07cd7c857d9fda9d035.zip
Merge #5483 from Shougo/vim-0648142
vim-patch 0648142, 91c4937, 06d2d38, 2685212, 269f595
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 b62b0a5db8..c2f6d5cff1 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
@@ -240,7 +240,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