comparison runtime/syntax/diff.vim @ 344:7033303ea0c0 v7.0089

updated for version 7.0089
author vimboss
date Tue, 21 Jun 2005 22:37:39 +0000
parents 3fc0f57ecb91
children f8f81a88a047
comparison
equal deleted inserted replaced
343:607cff4bc0cb 344:7033303ea0c0
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Diff (context or unified) 2 " Language: Diff (context or unified)
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2003 Apr 02 4 " Last Change: 2005 Jun 20
5 5
6 " For version 5.x: Clear all syntax items 6 " Quit when a (custom) syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 syn match diffOnly "^Only in .*" 11 syn match diffOnly "^Only in .*"
15 syn match diffIdentical "^Files .* and .* are identical$" 12 syn match diffIdentical "^Files .* and .* are identical$"
41 syn match diffNewFile "^--- .*" 38 syn match diffNewFile "^--- .*"
42 39
43 syn match diffComment "^#.*" 40 syn match diffComment "^#.*"
44 41
45 " Define the default highlighting. 42 " Define the default highlighting.
46 " For version 5.7 and earlier: only when not done already 43 " Only used when an item doesn't have highlighting yet
47 " For version 5.8 and later: only when an item doesn't have highlighting yet 44 hi def link diffOldFile diffFile
48 if version >= 508 || !exists("did_diff_syntax_inits") 45 hi def link diffNewFile diffFile
49 if version < 508 46 hi def link diffFile Type
50 let did_diff_syntax_inits = 1 47 hi def link diffOnly Constant
51 command -nargs=+ HiLink hi link <args> 48 hi def link diffIdentical Constant
52 else 49 hi def link diffDiffer Constant
53 command -nargs=+ HiLink hi def link <args> 50 hi def link diffBDiffer Constant
54 endif 51 hi def link diffIsA Constant
55 52 hi def link diffNoEOL Constant
56 HiLink diffOldFile diffFile 53 hi def link diffCommon Constant
57 HiLink diffNewFile diffFile 54 hi def link diffRemoved Special
58 HiLink diffFile Type 55 hi def link diffChanged PreProc
59 HiLink diffOnly Constant 56 hi def link diffAdded Identifier
60 HiLink diffIdentical Constant 57 hi def link diffLine Statement
61 HiLink diffDiffer Constant 58 hi def link diffSubname PreProc
62 HiLink diffBDiffer Constant 59 hi def link diffComment Comment
63 HiLink diffIsA Constant
64 HiLink diffNoEOL Constant
65 HiLink diffCommon Constant
66 HiLink diffRemoved Special
67 HiLink diffChanged PreProc
68 HiLink diffAdded Identifier
69 HiLink diffLine Statement
70 HiLink diffSubname PreProc
71 HiLink diffComment Comment
72
73 delcommand HiLink
74 endif
75 60
76 let b:current_syntax = "diff" 61 let b:current_syntax = "diff"
77 62
78 " vim: ts=8 sw=2 63 " vim: ts=8 sw=2