annotate runtime/syntax/desktop.vim @ 23898:92e488d863a3

Added tag v8.2.2491 for changeset 3033dade50cac5c8ae351871da9494a9632243b7
author Bram Moolenaar <Bram@vim.org>
date Wed, 10 Feb 2021 15:00:04 +0100
parents 83cfa1ef1bf2
children 1e91e26ceebf
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
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
2 " Language: XDG desktop entry
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Filenames: *.desktop, *.directory
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Maintainer: Eisuke Kawashima ( e.kawaschima+vim AT gmail.com )
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
6 " Last Change: 2020-06-11
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
7 " Version Info: desktop.vim 1.5
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
8 " References:
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
9 " - https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.5.html (2020-04-27)
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
10 " - https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-0.11.html (2006-02-07)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
12 " 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
13 if exists("b:current_syntax")
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
14 finish
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
15 endif
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
16
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
17 let s:cpo_save = &cpo
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
18 set cpo&vim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
19 syn case match
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
20
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
21 " Variable {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
22 " This syntax file can be used to all *nix configuration files similar to dos
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
23 " ini format (eg. .xawtv, .radio, kde rc files) - this is default mode.
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
24 " By default strict following of freedesktop.org standard is enforced.
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
25 " To highlight nonstandard extensions that does not begin with X-, set
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
26 " let g:desktop_enable_nonstd = v:true
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
27 " Note that this may cause wrong highlight.
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
28 " To highlight KDE-reserved features, set
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
29 " let g:desktop_enable_kde = v:true
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
30 " g:desktop_enable_kde follows g:desktop_enable_nonstd if not supplied
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
31
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
32 if exists("g:desktop_enable_nonstd") && g:desktop_enable_nonstd
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
33 let s:desktop_enable_nonstd = v:true
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
34 else
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
35 let s:desktop_enable_nonstd = v:false
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
36 endif
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
37
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
38 if exists("g:desktop_enable_kde") && g:desktop_enable_kde || s:desktop_enable_nonstd
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
39 let s:desktop_enable_kde = v:true
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
40 else
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
41 let s:desktop_enable_kde = v:false
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
44 " Comment {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
45 syn match dtComment /^#.*$/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
46
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
47 " Error {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
48 syn match dtError /\%(^\s.*\|\s\+$\)/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
49
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
50 " Group Header {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
51 " ASCII printable characters except for brackets [ (0x5B) and ] (0x5D)
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
52 syn match dtGroup /^\[[\x20-\x5A\x5C\x5E-\x7E]\+\]$/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
53
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
54 " Entries {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
55 syn match dtDelim /=/ contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
56 " lang_territory.codeset@modifier
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
57 syn match dtLocaleSuffix
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
58 \ /\[\%(C\|POSIX\|[a-z]\{2,4}\%(_[A-Z0-9]\{2,3}\)\?\)\%(\.[A-Za-z0-9_-]\+\)\?\%(@[A-Za-z]\+\)\?\]\ze\s*=/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
59 \ contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
60
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
61 " Boolean Value {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
62 syn match dtBoolean
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
63 \ /^\%(DBusActivatable\|Hidden\|NoDisplay\|PrefersNonDefaultGPU\|StartupNotify\|Terminal\)\s*=\s*\%(true\|false\)/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
64 \ contains=dtBooleanKey,dtDelim,dtBooleanValue transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
65 syn keyword dtBooleanKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
66 \ DBusActivatable Hidden NoDisplay PrefersNonDefaultGPU StartupNotify Terminal
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
67 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
68
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
69 if s:desktop_enable_kde
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
70 syn match dtBoolean
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
71 \ /^ReadOnly\s*=\s*\%(true\|false\)/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
72 \ contains=dtBooleanKey,dtDelim,dtBooleanValue transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
73 syn keyword dtBooleanKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
74 \ ReadOnly
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
75 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
76 endif
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
77 syn keyword dtBooleanValue true false contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
78
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
79 " Numeric Value {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
80 " icon theme
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
81 syn match dtNumeric /^\%(MaxSize\|MinSize\|Size\|Threshold\)\s*=\s*\d\+/ contains=dtNumericKey,dtDelim,dtNumericDecimal
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
82 syn keyword dtNumericKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
83 \ MaxSize MinSize Size Threshold
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
84 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
85
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
86 if s:desktop_enable_kde
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
87 syn match dtNumeric /^InitialPreference\s*=\s*\d\+/ contains=dtNumericKey,dtDelim,dtNumericDecimal
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
88 syn keyword dtNumericKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
89 \ InitialPreference
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
90 \ contained nextgroup=dtDelim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
93 syn match dtNumericDecimal /\<\d\+$/ contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
94
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
95 " String Value {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
96 syn match dtString
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
97 \ /^\%(Actions\|Implements\|MimeType\|NotShowIn\|OnlyShowIn\|Path\|StartupWMClass\|URL\)\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
98 \ contains=dtStringKey,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
99 syn keyword dtStringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
100 \ Actions Implements MimeType NotShowIn OnlyShowIn Path StartupWMClass URL Version
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
101 \ contained nextgroup=dtDelim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
103 " icon theme
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
104 syn match dtString
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
105 \ /^\%(Context\|Directories\|Example\|Inherits\)\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
106 \ contains=dtStringKey,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
107 syn keyword dtStringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
108 \ Context Directories Example Inherits
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
109 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
110
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
111 if s:desktop_enable_kde
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
112 syn match dtString
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
113 \ /^\%(Dev\|DocPath\|FSType\|MountPoint\|ServiceTypes\)\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
114 \ contains=dtStringKey,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
115 syn keyword dtStringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
116 \ Dev DocPath FSType MountPoint ServiceTypes
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
117 \ contained nextgroup=dtDelim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
120 " Categories {{{3
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
121 " https://specifications.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
122 syn match dtCategories /^Categories\s*=.\+\S/ contains=dtCategoriesKey,dtDelim,dtCategoriesValue transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
123 syn keyword dtCategoriesKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
124 \ Categories
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
125 \ contained nextgroup=dtDelim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
127 " Main Categories
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
128 syn keyword dtCategoriesValue
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
129 \ Audio AudioVideo Development Education Game Graphics Network Office
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
130 \ Settings System Utility Video
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
131 \ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
133 " Additional Categories
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
134 syn keyword dtCategoriesValue
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
135 \ BoardGame Chat Clock Geoscience Presentation 2DGraphics 3DGraphics
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
136 \ Accessibility ActionGame AdventureGame Amusement ArcadeGame Archiving
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
137 \ Art ArtificialIntelligence Astronomy AudioVideoEditing Biology
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
138 \ BlocksGame BoardGame Building Calculator Calendar CardGame Chart Chat
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
139 \ Chemistry Clock Compression ComputerScience ConsoleOnly Construction
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
140 \ ContactManagement Core DataVisualization Database Debugger
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
141 \ DesktopSettings Dialup Dictionary DiscBurning Documentation Economy
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
142 \ Electricity Electronics Email Emulator Engineering FileManager
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
143 \ FileTools FileTransfer Filesystem Finance FlowChart GNOME GTK
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
144 \ GUIDesigner Geography Geology Geoscience HamRadio HardwareSettings
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
145 \ History IDE IRCClient ImageProcessing InstantMessaging Java KDE
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
146 \ KidsGame Languages Literature LogicGame Math MedicalSoftware Midi
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
147 \ Mixer Monitor Motif Music News NumericalAnalysis OCR P2P PDA
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
148 \ PackageManager ParallelComputing Photography Physics Player
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
149 \ Presentation Printing Profiling ProjectManagement Publishing Qt
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
150 \ RasterGraphics Recorder RemoteAccess RevisionControl Robotics
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
151 \ RolePlaying Scanning Science Security Sequencer Simulation Sports
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
152 \ SportsGame Spreadsheet StrategyGame TV Telephony TelephonyTools
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
153 \ TerminalEmulator TextEditor TextTools Translation Tuner VectorGraphics
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
154 \ VideoConference Viewer WebBrowser WebDevelopment WordProcessor
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
155 \ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
157 " Reserved Category
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
158 syn keyword dtCategoriesValue
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
159 \ Applet Screensaver Shell TrayIcon
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
160 \ contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
161
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
162 " Exec/TryExec {{{3
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
163 syn match dtExec /^\%(Exec\|TryExec\)\s*=.\+\S/ contains=dtExecKey,dtDelim,dtExecParam transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
164 syn keyword dtExecKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
165 \ Exec TryExec
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
166 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
167 " code for file(s), URL(s), etc
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
168 syn match dtExecParam /\s\zs%[fFuUick]\ze\%(\W\|$\)/ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
170 " Type {{{3
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
171 syn match dtType /^Type\s*=\s*\S\+/ contains=dtTypeKey,dtDelim,dtTypeValue transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
172 syn keyword dtTypeKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
173 \ Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
174 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
175 syn keyword dtTypeValue
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
176 \ Application Directory Link
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
177 \ contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
179 if s:desktop_enable_kde
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
180 syn keyword dtTypeValue
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
181 \ FSDevice Service ServiceType
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
182 \ contained
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
183 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
186 " Version {{{3
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
187 syn match dtVersion /^Version\s*=\s*\S\+/ contains=dtVersionKey,dtDelim,dtVersionValue transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
188 syn keyword dtVersionKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
189 \ Version
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
190 \ contained nextgroup=dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
191 syn match dtVersionValue /[0-9]\+\%(\.[0-9]\+\)\{1,2}$/ contained
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
192
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
193 " Localestring Value {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
194 syn match dtLocalestring
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
195 \ /^\%(Comment\|GenericName\|Keywords\|Name\)\%(\[.\{-}\]\)\?\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
196 \ contains=dtLocalestringKey,dtLocaleSuffix,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
197 syn keyword dtLocalestringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
198 \ Comment GenericName Keywords Name
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
199 \ contained nextgroup=dtLocaleSuffix,dtDelim skipwhite
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
201 " Iconstring Value {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
202 syn match dtIconstring
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
203 \ /^Icon\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
204 \ contains=dtIconstringKey,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
205 syn keyword dtIconstringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
206 \ Icon
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
207 \ contained nextgroup=dtDelim skipwhite
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 8869
diff changeset
208
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
209 if s:desktop_enable_kde
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
210 syn match dtIconstring
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
211 \ /^UnmountIcon\>\%(\[.\{-}\]\)\?\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
212 \ contains=dtIconstringKey,dtLocaleSuffix,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
213 syn keyword dtIconstringKey
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
214 \ UnmountIcon
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
215 \ contained nextgroup=dtLocaleSuffix,dtDelim skipwhite
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
216 endif
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
217
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
218 " X-Extension {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
219 syn match dtXExtension /^X-[0-9A-Za-z-]*\%(\[.\{-}\]\)\?\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
220 \ contains=dtXExtensionKey,dtLocaleSuffix,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
221 syn match dtXExtensionKey /^X-[0-9A-Za-z-]*/ contained nextgroup=dtLocaleSuffix,dtDelim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
223 " non standard {{{2
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
224 if s:desktop_enable_nonstd
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
225 syn match dtNonStdLabel /^[0-9A-Za-z-]\+\%(\[.\{-}\]\)\?\s*=.*\S/
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
226 \ contains=dtNonStdLabelKey,dtLocaleSuffix,dtDelim transparent
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
227 syn match dtNonStdLabelKey /^[0-9A-Za-z-]\+/ contained nextgroup=dtLocaleSuffix,dtDelim
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
228 endif
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
229
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
230 " Highlight {{{1
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
231 hi def link dtComment Comment
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
232 hi def link dtError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
234 hi def link dtGroup Special
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
235
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
236 hi def link dtDelim Delimiter
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
237 hi def link dtLocaleSuffix Identifier
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
238
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
239 hi def link dtBooleanKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
240 hi def link dtBooleanValue Boolean
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
241
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
242 hi def link dtNumericKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
243 hi def link dtNumericDecimal Number
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
245 hi def link dtStringKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
246 hi def link dtCategoriesKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
247 hi def link dtCategoriesValue Constant
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
248 hi def link dtExecKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
249 hi def link dtExecParam Special
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
250 hi def link dtTypeKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
251 hi def link dtTypeValue Constant
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
252 hi def link dtVersionKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
253 hi def link dtVersionValue Constant
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
254
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
255 hi def link dtLocalestringKey Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
257 hi def link dtIconStringKey Type
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
259 hi def link dtXExtensionKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
260
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
261 hi def link dtNonStdLabelKey Type
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
262
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
263 " Clean Up {{{1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 let b:current_syntax = "desktop"
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
265 let &cpo = s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266
20856
83cfa1ef1bf2 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
267 " vim:ts=8:sw=2:fdm=marker