annotate runtime/syntax/tags.vim @ 3231:910eb66c9768 v7.3.385

updated for version 7.3.385 Problem: When using an expression mapping on the command line the cursor ends up in the wrong place. (Yasuhiro Matsumoto) Solution: Save and restore msg_col and msg_row when evaluating the expression.
author Bram Moolenaar <bram@vim.org>
date Fri, 23 Dec 2011 14:54:04 +0100
parents a1059cda45f2
children b3bc99b909c3
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchip@PcampbellAfamily.Mbiz>
507
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
3 " Last Change: Sep 06, 2005
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
4 " Version: 3
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
5 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
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