2 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchip@PcampbellAfamily.Mbiz>
3 " Last Change: Sep 06, 2005
5 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
15 syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath
16 syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile
17 syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained
18 syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment
19 syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment
20 syn match tagComment ";.*$" contained contains=tagField
21 syn match tagComment "^!_TAG_.*$"
22 syn match tagField contained "[a-z]*:"
24 " Define the default highlighting.
25 " For version 5.7 and earlier: only when not done already
26 " For version 5.8 and later: only when an item doesn't have highlighting yet
27 if version >= 508 || !exists("did_drchip_tags_inits")
29 let did_drchip_tags_inits = 1
30 command -nargs=+ HiLink hi link <args>
32 command -nargs=+ HiLink hi def link <args>
35 HiLink tagBaseFile PreProc
36 HiLink tagComment Comment
37 HiLink tagDelim Delimiter
38 HiLink tagField Number
39 HiLink tagName Identifier
40 HiLink tagPath PreProc
45 let b:current_syntax = "tags"