annotate runtime/syntax/desc.vim @ 7688:f56cebad5ba2

Added tag v7.4.1142 for changeset 61354fabf8a27cabd9903240db733f96a127a8a5
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jan 2016 22:30:07 +0100
parents e63691e7c504
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 " Vim syntax file
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
2 " Language: T2 / ROCK Linux .desc
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
3 " Maintainer: René Rebe <rene@exactcode.de>, Piotr Esden-Tempski <esden@rocklinux.org>
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 819
diff changeset
4 " Last Change: 2006 Aug 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " syntax definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 setl iskeyword+=-
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 819
diff changeset
17 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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword descLicense Unknown GPL LGPL FDL MIT BSD OpenSource Free-to-use Commercial contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " tags
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
21 syn match descTag /^\[\(COPY\)\]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match descTag /^\[\(I\|TITLE\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match descTag /^\[\(T\|TEXT\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match descTag /^\[\(U\|URL\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match descTag /^\[\(A\|AUTHOR\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match descTag /^\[\(M\|MAINTAINER\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match descTag /^\[\(C\|CATEGORY\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match descTag /^\[\(F\|FLAG\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match descTag /^\[\(E\|DEP\|DEPENDENCY\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match descTag /^\[\(R\|ARCH\|ARCHITECTURE\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match descTag /^\[\(L\|LICENSE\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match descTag /^\[\(S\|STATUS\)\]/
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
33 syn match descTag /^\[\(O\|CONF\)\]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match descTag /^\[\(V\|VER\|VERSION\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match descTag /^\[\(P\|PRI\|PRIORITY\)\]/ nextgroup=descInstall skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match descTag /^\[\(D\|DOWN\|DOWNLOAD\)\]/ nextgroup=descSum skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " misc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match descUrl /\w\+:\/\/\S\+/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match descCategory /\w\+\/\w\+/ contained
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
41 syn match descEmail /<[\.A-Za-z0-9]\+@[\.A-Za-z0-9]\+>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " priority tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match descInstallX /X/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match descInstallO /O/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match descInstall /[OX]/ contained contains=descInstallX,descInstallO nextgroup=descStage skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match descDash /-/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match descDigit /\d/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match descStage /[\-0][\-1][\-2][\-3][\-4][\-5][\-6][\-7][\-8][\-9]/ contained contains=descDash,descDigit nextgroup=descCompilePriority skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match descCompilePriority /\d\{3}\.\d\{3}/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " download tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match descSum /\d\+/ contained nextgroup=descTarball skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match descTarball /\S\+/ contained nextgroup=descUrl skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " tag regions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn region descText start=/^\[\(T\|TEXT\)\]/ end=/$/ contains=descTag,descUrl,descEmail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn region descTagRegion start=/^\[\(C\|CATEGORY\)\]/ end=/$/ contains=descTag,descCategory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn region descTagRegion start=/^\[\(F\|FLAG\)\]/ end=/$/ contains=descTag,descFlag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn region descTagRegion start=/^\[\(L\|LICENSE\)\]/ end=/$/ contains=descTag,descLicense
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " 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
69 if version >= 508 || !exists("did_desc_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 let did_desc_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink descFlag Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink descLicense Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink descCategory Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink descTag Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink descUrl Underlined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink descEmail Underlined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 " priority tag colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink descInstallX Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink descInstallO Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink descDash Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink descDigit Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 HiLink descCompilePriority Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " download tag colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink descSum Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink descTarball Underlined
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " tag region colors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 HiLink descText Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 let b:current_syntax = "desc"