d12698c
To: vim-dev@vim.org
d12698c
Subject: Patch 7.2.006
d12698c
Fcc: outbox
d12698c
From: Bram Moolenaar <Bram@moolenaar.net>
d12698c
Mime-Version: 1.0
d12698c
Content-Type: text/plain; charset=ISO-8859-1
d12698c
Content-Transfer-Encoding: 8bit
d12698c
------------
d12698c
d12698c
Patch 7.2.006
d12698c
Problem:    HTML files are not recognized by contents.
d12698c
Solution:   Add a rule to the scripts file. (Nico Weber)
d12698c
Files:      runtime/scripts.vim
d12698c
d12698c
d12698c
*** ../vim-7.2.005/runtime/scripts.vim	Sat Aug  9 19:37:09 2008
d12698c
--- runtime/scripts.vim	Sat Aug 16 04:05:34 2008
d12698c
***************
d12698c
*** 234,239 ****
d12698c
--- 234,243 ----
d12698c
    elseif s:line1 =~ '\
d12698c
      set ft=xhtml
d12698c
  
d12698c
+     " HTML (e.g.: 
d12698c
+   elseif s:line1 =~? '\<DOCTYPE\s\+html\>'
d12698c
+     set ft=html
d12698c
+ 
d12698c
      " PDF
d12698c
    elseif s:line1 =~ '^%PDF-'
d12698c
      set ft=pdf
d12698c
*** ../vim-7.2.005/src/version.c	Mon Aug 25 04:48:21 2008
d12698c
--- src/version.c	Mon Aug 25 05:02:34 2008
d12698c
***************
d12698c
*** 678,679 ****
d12698c
--- 678,681 ----
d12698c
  {   /* Add new patch number below this line */
d12698c
+ /**/
d12698c
+     6,
d12698c
  /**/
d12698c
d12698c
-- 
d12698c
Never enter the boss's office unless it's absolutely necessary.  Every boss
d12698c
saves one corner of the desk for useless assignments that are doled out like
d12698c
Halloween candy to each visitor.
d12698c
				(Scott Adams - The Dilbert principle)
d12698c
d12698c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d12698c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d12698c
\\\        download, build and distribute -- http://www.A-A-P.org        ///
d12698c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///