annotate runtime/syntax/desc.vim @ 25220:89b39ce243e2 v8.2.3146

patch 8.2.3146: Vim9: line number wrong for :execute argument Commit: https://github.com/vim/vim/commit/c03fe66ade4c79a4eb5fc05d1d549c8f931a04b6 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 11 16:52:45 2021 +0200 patch 8.2.3146: Vim9: line number wrong for :execute argument Problem: Vim9: line number wrong for :execute argument. Solution: Use the line number of the :execute command itself. (closes https://github.com/vim/vim/issues/8537)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Jul 2021 17:00:04 +0200
parents 46763b01cd9a
children
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
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " syntax definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 setl iskeyword+=-
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 819
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 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
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " tags
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
18 syn match descTag /^\[\(COPY\)\]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match descTag /^\[\(I\|TITLE\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match descTag /^\[\(T\|TEXT\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match descTag /^\[\(U\|URL\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match descTag /^\[\(A\|AUTHOR\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match descTag /^\[\(M\|MAINTAINER\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match descTag /^\[\(C\|CATEGORY\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match descTag /^\[\(F\|FLAG\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match descTag /^\[\(E\|DEP\|DEPENDENCY\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match descTag /^\[\(R\|ARCH\|ARCHITECTURE\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match descTag /^\[\(L\|LICENSE\)\]/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match descTag /^\[\(S\|STATUS\)\]/
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
30 syn match descTag /^\[\(O\|CONF\)\]/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match descTag /^\[\(V\|VER\|VERSION\)\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match descTag /^\[\(P\|PRI\|PRIORITY\)\]/ nextgroup=descInstall skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match descTag /^\[\(D\|DOWN\|DOWNLOAD\)\]/ nextgroup=descSum skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " misc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match descUrl /\w\+:\/\/\S\+/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match descCategory /\w\+\/\w\+/ contained
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
38 syn match descEmail /<[\.A-Za-z0-9]\+@[\.A-Za-z0-9]\+>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " priority tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match descInstallX /X/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match descInstallO /O/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match descInstall /[OX]/ contained contains=descInstallX,descInstallO nextgroup=descStage skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match descDash /-/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match descDigit /\d/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 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
47 syn match descCompilePriority /\d\{3}\.\d\{3}/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " download tag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match descSum /\d\+/ contained nextgroup=descTarball skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match descTarball /\S\+/ contained nextgroup=descUrl skipwhite
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " tag regions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn region descText start=/^\[\(T\|TEXT\)\]/ end=/$/ contains=descTag,descUrl,descEmail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn region descTagRegion start=/^\[\(C\|CATEGORY\)\]/ end=/$/ contains=descTag,descCategory
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn region descTagRegion start=/^\[\(F\|FLAG\)\]/ end=/$/ contains=descTag,descFlag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn region descTagRegion start=/^\[\(L\|LICENSE\)\]/ end=/$/ contains=descTag,descLicense
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 let b:current_syntax = "desc"