Mercurial > vim
annotate runtime/syntax/desc.vim @ 34660:765427c81d05
runtime(debcontrol): add Static-Built-Using field (#14306)
Commit: https://github.com/vim/vim/commit/677cd956810e685e820a5ade5aa6c29be5044e9b
Author: Guilherme Puida <guilherme@puida.xyz>
Date: Thu Mar 28 05:56:50 2024 -0300
runtime(debcontrol): add Static-Built-Using field (https://github.com/vim/vim/issues/14306)
Signed-off-by: Guilherme Puida <guilherme@puida.xyz>
Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 28 Mar 2024 10:00:10 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
819 | 2 " Language: T2 / ROCK Linux .desc |
3 " Maintainer: René Rebe <rene@exactcode.de>, Piotr Esden-Tempski <esden@rocklinux.org> | |
1121 | 4 " Last Change: 2006 Aug 14 |
7 | 5 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 " syntax definitions | |
12 | |
13 setl iskeyword+=- | |
1121 | 14 syn keyword descFlag DIETLIBC KAFFE JAIL NOPARALLEL FPIC-QUIRK LIBTOOL-WUIRK NO-LIBTOOL-FIX AUTOMAKE-QUIRK NO-AS-NEEDED NO-SSP KERNEL INIT LIBC CC CXX F77 KCC contained |
7 | 15 syn keyword descLicense Unknown GPL LGPL FDL MIT BSD OpenSource Free-to-use Commercial contained |
16 | |
17 " tags | |
819 | 18 syn match descTag /^\[\(COPY\)\]/ |
7 | 19 syn match descTag /^\[\(I\|TITLE\)\]/ |
20 syn match descTag /^\[\(T\|TEXT\)\]/ contained | |
21 syn match descTag /^\[\(U\|URL\)\]/ | |
22 syn match descTag /^\[\(A\|AUTHOR\)\]/ | |
23 syn match descTag /^\[\(M\|MAINTAINER\)\]/ | |
24 syn match descTag /^\[\(C\|CATEGORY\)\]/ contained | |
25 syn match descTag /^\[\(F\|FLAG\)\]/ contained | |
26 syn match descTag /^\[\(E\|DEP\|DEPENDENCY\)\]/ | |
27 syn match descTag /^\[\(R\|ARCH\|ARCHITECTURE\)\]/ | |
28 syn match descTag /^\[\(L\|LICENSE\)\]/ contained | |
29 syn match descTag /^\[\(S\|STATUS\)\]/ | |
819 | 30 syn match descTag /^\[\(O\|CONF\)\]/ |
7 | 31 syn match descTag /^\[\(V\|VER\|VERSION\)\]/ |
32 syn match descTag /^\[\(P\|PRI\|PRIORITY\)\]/ nextgroup=descInstall skipwhite | |
33 syn match descTag /^\[\(D\|DOWN\|DOWNLOAD\)\]/ nextgroup=descSum skipwhite | |
34 | |
35 " misc | |
36 syn match descUrl /\w\+:\/\/\S\+/ | |
37 syn match descCategory /\w\+\/\w\+/ contained | |
819 | 38 syn match descEmail /<[\.A-Za-z0-9]\+@[\.A-Za-z0-9]\+>/ |
7 | 39 |
40 " priority tag | |
41 syn match descInstallX /X/ contained | |
42 syn match descInstallO /O/ contained | |
43 syn match descInstall /[OX]/ contained contains=descInstallX,descInstallO nextgroup=descStage skipwhite | |
44 syn match descDash /-/ contained | |
45 syn match descDigit /\d/ contained | |
46 syn match descStage /[\-0][\-1][\-2][\-3][\-4][\-5][\-6][\-7][\-8][\-9]/ contained contains=descDash,descDigit nextgroup=descCompilePriority skipwhite | |
47 syn match descCompilePriority /\d\{3}\.\d\{3}/ contained | |
48 | |
49 " download tag | |
50 syn match descSum /\d\+/ contained nextgroup=descTarball skipwhite | |
51 syn match descTarball /\S\+/ contained nextgroup=descUrl skipwhite | |
52 | |
53 | |
54 " tag regions | |
55 syn region descText start=/^\[\(T\|TEXT\)\]/ end=/$/ contains=descTag,descUrl,descEmail | |
56 | |
57 syn region descTagRegion start=/^\[\(C\|CATEGORY\)\]/ end=/$/ contains=descTag,descCategory | |
58 | |
59 syn region descTagRegion start=/^\[\(F\|FLAG\)\]/ end=/$/ contains=descTag,descFlag | |
60 | |
61 syn region descTagRegion start=/^\[\(L\|LICENSE\)\]/ end=/$/ contains=descTag,descLicense | |
62 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
63 " Only when an item doesn't have highlighting yet |
7 | 64 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
65 hi def link descFlag Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link descLicense Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link descCategory Identifier |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
68 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link descTag Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link descUrl Underlined |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link descEmail Underlined |
7 | 72 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
73 " priority tag colors |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link descInstallX Boolean |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link descInstallO Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
76 hi def link descDash Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link descDigit Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link descCompilePriority Number |
7 | 79 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
80 " download tag colors |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
81 hi def link descSum Number |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
82 hi def link descTarball Underlined |
7 | 83 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
1121
diff
changeset
|
84 " tag region colors |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
85 hi def link descText Comment |
7 | 86 |
87 | |
88 let b:current_syntax = "desc" |