Mercurial > vim
annotate runtime/syntax/tags.vim @ 19382:e6f0b4fe0b6d v8.2.0249
patch 8.2.0249: MS-Windows: various warnings
Commit: https://github.com/vim/vim/commit/3fb377fa78131004138b22a87afe33eeb7649b94
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 12 21:52:32 2020 +0100
patch 8.2.0249: MS-Windows: various warnings
Problem: MS-Windows: various warnings.
Solution: Set the charset to utf-8. Add _WIN32_WINNT and _USING_V110_SDK71_.
(Ken Takata, closes #5625)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Feb 2020 22:00:05 +0100 |
parents | 8edf0aeb71b9 |
children | 02bd0fe77c68 |
rev | line source |
---|---|
7 | 1 " Language: tags |
19180 | 2 " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
10306
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
3 " Last Change: Oct 26, 2016 |
19180 | 4 " Version: 8 |
6479 | 5 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS |
7 | 6 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
10306
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
12 syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
13 syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile |
7 | 14 syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained |
10306
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
15 syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
16 syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
17 syn match tagComment ";.*$" contained contains=tagField |
7 | 18 syn match tagComment "^!_TAG_.*$" |
10306
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
19 syn match tagField contained "[a-z]*:" |
7 | 20 |
21 " Define the default highlighting. | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
22 if !exists("skip_drchip_tags_inits") |
10306
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
23 hi def link tagBaseFile PreProc |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
24 hi def link tagComment Comment |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
25 hi def link tagDelim Delimiter |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
26 hi def link tagField Number |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
27 hi def link tagName Identifier |
d75e2380db0e
commit https://github.com/vim/vim/commit/6d5ad4c4118cab5fd96db157621c3aa9af368edb
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
28 hi def link tagPath PreProc |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
29 endif |
7 | 30 |
31 let b:current_syntax = "tags" |