comparison runtime/scripts.vim @ 1648:58cad056e608 v7.2a.00

updated for version 7.2a-00
author vimboss
date Wed, 25 Jun 2008 20:13:35 +0000
parents 72ea03e15166
children 0b796e045c42
comparison
equal deleted inserted replaced
1647:484fb4dfd452 1648:58cad056e608
1 " Vim support file to detect file types in scripts 1 " Vim support file to detect file types in scripts
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last change: 2007 Apr 29 4 " Last change: 2008 Apr 28
5 5
6 " This file is called by an autocommand for every file that has just been 6 " This file is called by an autocommand for every file that has just been
7 " loaded into a buffer. It checks if the type of file can be recognized by 7 " loaded into a buffer. It checks if the type of file can be recognized by
8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim. 8 " the file contents. The autocommand is in $VIMRUNTIME/filetype.vim.
9 9
232 232
233 " XHTML (e.g.: PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN") 233 " XHTML (e.g.: PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN")
234 elseif s:line1 =~ '\<DTD\s\+XHTML\s' 234 elseif s:line1 =~ '\<DTD\s\+XHTML\s'
235 set ft=xhtml 235 set ft=xhtml
236 236
237 " PDF
238 elseif s:line1 =~ '^%PDF-'
239 set ft=pdf
240
237 " XXD output 241 " XXD output
238 elseif s:line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} ' 242 elseif s:line1 =~ '^\x\{7}: \x\{2} \=\x\{2} \=\x\{2} \=\x\{2} '
239 set ft=xxd 243 set ft=xxd
240 244
241 " RCS/CVS log output 245 " RCS/CVS log output
306 set ft=rib 310 set ft=rib
307 311
308 " Scheme scripts 312 " Scheme scripts
309 elseif s:line1 =~ 'exec\s\+\S*scheme' || s:line2 =~ 'exec\s\+\S*scheme' 313 elseif s:line1 =~ 'exec\s\+\S*scheme' || s:line2 =~ 'exec\s\+\S*scheme'
310 set ft=scheme 314 set ft=scheme
315
316 " Git output
317 elseif s:line1 =~ '^\(commit\|tree\|object\) \x\{40\}$\|^tag \S\+$'
318 set ft=git
311 319
312 " CVS diff 320 " CVS diff
313 else 321 else
314 let lnum = 1 322 let lnum = 1
315 while getline(lnum) =~ "^? " && lnum < line("$") 323 while getline(lnum) =~ "^? " && lnum < line("$")