annotate runtime/syntax/tags.vim @ 8511:2712bfe5d62e

Added tag v7.4.1545 for changeset 9f5bd031530d829262abac038244bfa7f3057abb
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Mar 2016 16:30:04 +0100
parents b3bc99b909c3
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Language: tags
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
2 " Maintainer: Charles E. Campbell <NdrOchip@PcampbellAfamily.Mbiz>
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
3 " Last Change: Oct 23, 2014
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
4 " Version: 4
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
5 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match tagComment ";.*$" contained contains=tagField
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match tagComment "^!_TAG_.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match tagField contained "[a-z]*:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 if version >= 508 || !exists("did_drchip_tags_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let did_drchip_tags_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 HiLink tagBaseFile PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 HiLink tagComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 HiLink tagDelim Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 HiLink tagField Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 HiLink tagName Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 HiLink tagPath PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 let b:current_syntax = "tags"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " vim: ts=12