aboutsummaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-15 12:12:48 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-10-15 12:15:36 +0900
commitf3efb724af8c990f8dbc7e706e70aa7f4d796deb (patch)
tree8de7e8b9b40ac0793d931ea206dc8b7f96942b36 /runtime/scripts.vim
parent40f853398ea0e4e94425234c3ed38f057659d3cc (diff)
downloadrneovim-f3efb724af8c990f8dbc7e706e70aa7f4d796deb.tar.gz
rneovim-f3efb724af8c990f8dbc7e706e70aa7f4d796deb.tar.bz2
rneovim-f3efb724af8c990f8dbc7e706e70aa7f4d796deb.zip
vim-patch:2685212
Update runtime files. https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
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