Mercurial > vim
annotate runtime/syntax/tags.vim @ 19195:2ef19eed524a v8.2.0156
patch 8.2.0156: various typos in source files and tests
Commit: https://github.com/vim/vim/commit/4b96df5a017a04141c4e901b1fc5704a3ca48099
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 26 22:00:26 2020 +0100
patch 8.2.0156: various typos in source files and tests
Problem: Various typos in source files and tests.
Solution: Fix the typos. (Emir Sari, closes https://github.com/vim/vim/issues/5532)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jan 2020 22:15: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" |