comparison runtime/scripts.vim @ 651:bc95c6c4bac1 v7.0191

updated for version 7.0191
author vimboss
date Wed, 01 Feb 2006 21:56:25 +0000
parents f9eaf0a9872d
children 8d284e3d8112
comparison
equal deleted inserted replaced
650:662e40bd2be1 651:bc95c6c4bac1
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: 2005 Oct 12 4 " Last change: 2006 Feb 01
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
182 " - "Only in " in first line 182 " - "Only in " in first line
183 " - "--- " in first line and "+++ " in second line (unified diff). 183 " - "--- " in first line and "+++ " in second line (unified diff).
184 " - "*** " in first line and "--- " in second line (context diff). 184 " - "*** " in first line and "--- " in second line (context diff).
185 " - "# It was generated by makepatch " in the second line (makepatch diff). 185 " - "# It was generated by makepatch " in the second line (makepatch diff).
186 " - "Index: <filename>" in the first line (CVS file) 186 " - "Index: <filename>" in the first line (CVS file)
187 elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)' 187 elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)'
188 \ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ') 188 \ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ')
189 \ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ') 189 \ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ')
190 \ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ') 190 \ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ')
191 set ft=diff 191 set ft=diff
192 192