tags.vim (1251B)
1 " Language: tags 2 " Maintainer: This runtime file is looking for a new maintainer. 3 " Former Maintainer: Charles E. Campbell 4 " Last Change: Oct 26, 2016 5 " 2024 Feb 19 by Vim Project (announce adoption) 6 " Version: 8 7 " Former URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS 8 9 " quit when a syntax file was already loaded 10 if exists("b:current_syntax") 11 finish 12 endif 13 14 syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath 15 syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile 16 syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained 17 syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment 18 syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment 19 syn match tagComment ";.*$" contained contains=tagField 20 syn match tagComment "^!_TAG_.*$" 21 syn match tagField contained "[a-z]*:" 22 23 " Define the default highlighting. 24 if !exists("skip_drchip_tags_inits") 25 hi def link tagBaseFile PreProc 26 hi def link tagComment Comment 27 hi def link tagDelim Delimiter 28 hi def link tagField Number 29 hi def link tagName Identifier 30 hi def link tagPath PreProc 31 endif 32 33 let b:current_syntax = "tags"