annotate runtime/syntax/desktop.vim @ 16464:9bb2192a7c95 v8.1.1236

patch 8.1.1236: sjiscorr.c not found in shadow directory commit https://github.com/vim/vim/commit/fe368edcc00f2294e43531f72c2569aaf5964821 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 29 20:30:54 2019 +0200 patch 8.1.1236: sjiscorr.c not found in shadow directory Problem: sjiscorr.c not found in shadow directory. (Tony Mechelynck) Solution: Link po/*.c files with "make shadow".
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Apr 2019 20:45:05 +0200
parents 46763b01cd9a
children 83cfa1ef1bf2
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: .desktop, .directory files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " according to freedesktop.org specification 0.9.4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " http://pdx.freedesktop.org/Standards/desktop-entry-spec/desktop-entry-spec-0.9.4.html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
8869
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
6 " Last Change: 2016 Apr 02
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
7 " (added "Keywords")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Version Info: desktop.vim 0.9.4-1.2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
10 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
11 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " This syntax file can be used to all *nix configuration files similar to dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " ini format (eg. .xawtv, .radio, kde rc files) - this is default mode. But
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " you can also enforce strict following of freedesktop.org standard for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " .desktop and .directory files . Set (eg. in vimrc)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " let enforce_freedesktop_standard = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " and nonstandard extensions not following X- notation will not be highlighted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if exists("enforce_freedesktop_standard")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 let b:enforce_freedesktop_standard = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let b:enforce_freedesktop_standard = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " case on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " General
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if b:enforce_freedesktop_standard == 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match dtNotStLabel "^.\{-}=\@=" nextgroup=dtDelim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match dtGroup /^\s*\[.*\]/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match dtComment /^\s*#.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match dtDelim /=/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Locale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match dtLocale /^\s*\<\(Name\|GenericName\|Comment\|SwallowTitle\|Icon\|UnmountIcon\)\>.*/ contains=dtLocaleKey,dtLocaleName,dtDelim transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword dtLocaleKey Name GenericName Comment SwallowTitle Icon UnmountIcon nextgroup=dtLocaleName containedin=dtLocale
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match dtLocaleName /\(\[.\{-}\]\s*=\@=\|\)/ nextgroup=dtDelim containedin=dtLocale contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Numeric
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match dtNumeric /^\s*\<Version\>/ contains=dtNumericKey,dtDelim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword dtNumericKey Version nextgroup=dtDelim containedin=dtNumeric contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match dtBoolean /^\s*\<\(StartupNotify\|ReadOnly\|Terminal\|Hidden\|NoDisplay\)\>.*/ contains=dtBooleanKey,dtDelim,dtBooleanValue transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword dtBooleanKey StartupNotify ReadOnly Terminal Hidden NoDisplay nextgroup=dtDelim containedin=dtBoolean contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword dtBooleanValue true false containedin=dtBoolean contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " String
8869
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
54 syn match dtString /^\s*\<\(Encoding\|Icon\|Path\|Actions\|FSType\|MountPoint\|UnmountIcon\|URL\|Keywords\|Categories\|OnlyShowIn\|NotShowIn\|StartupWMClass\|FilePattern\|MimeType\)\>.*/ contains=dtStringKey,dtDelim transparent
b73f9ed65072 commit https://github.com/vim/vim/commit/939a1abe935a539f2d4c90a56cb0682cbaf3bbb0
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
55 syn keyword dtStringKey Type Encoding TryExec Exec Path Actions FSType MountPoint URL Keywords Categories OnlyShowIn NotShowIn StartupWMClass FilePattern MimeType nextgroup=dtDelim containedin=dtString contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Exec
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match dtExec /^\s*\<\(Exec\|TryExec\|SwallowExec\)\>.*/ contains=dtExecKey,dtDelim,dtExecParam transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword dtExecKey Exec TryExec SwallowExec nextgroup=dtDelim containedin=dtExec contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match dtExecParam /%[fFuUnNdDickv]/ containedin=dtExec contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match dtType /^\s*\<Type\>.*/ contains=dtTypeKey,dtDelim,dtTypeValue transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword dtTypeKey Type nextgroup=dtDelim containedin=dtType contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn keyword dtTypeValue Application Link FSDevice Directory containedin=dtType contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " X-Addition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match dtXAdd /^\s*X-.*/ contains=dtXAddKey,dtDelim transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match dtXAddKey /^\s*X-.\{-}\s*=\@=/ nextgroup=dtDelim containedin=dtXAdd contains=dtXLocale contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " Locale for X-Addition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn match dtXLocale /\[.\{-}\]\s*=\@=/ containedin=dtXAddKey contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " Locale for all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match dtALocale /\[.\{-}\]\s*=\@=/ containedin=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
79 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
80
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link dtGroup Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
82 hi def link dtComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link dtDelim String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link dtLocaleKey Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
86 hi def link dtLocaleName Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link dtXLocale Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link dtALocale Identifier
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
89
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
90 hi def link dtNumericKey Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link dtBooleanKey Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
93 hi def link dtBooleanValue Constant
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
95 hi def link dtStringKey Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
97 hi def link dtExecKey Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
98 hi def link dtExecParam Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
99 hi def link dtTypeKey Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
100 hi def link dtTypeValue Constant
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
101 hi def link dtNotStLabel Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
102 hi def link dtXAddKey Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 let b:current_syntax = "desktop"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 " vim:ts=8