annotate runtime/syntax/tags.vim @ 6539:6da912e32896 v7.4.596

updated for version 7.4.596 Problem: Tiny build doesn't compile. (Ike Devolder) Solution: Add #ifdef.
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 13:33:23 +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