Merged from the latest developing branch.
[MacVim/jjgod.git] / runtime / syntax / litestep.vim
blobb4c15faf65a90b97b0e2414be516d3149c5fdd54
1 " Vim syntax file
2 " Language:         LiteStep RC file
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2007-02-22
6 if exists("b:current_syntax")
7   finish
8 endif
10 let s:cpo_save = &cpo
11 set cpo&vim
13 syn keyword litestepTodo
14       \ contained
15       \ TODO FIXME XXX NOTE
17 syn match   litestepComment
18       \ contained display contains=litestepTodo,@Spell
19       \ ';.*$'
21 syn case ignore
23 syn cluster litestepBeginnings
24       \ contains=
25       \   litestepComment,
26       \   litestepPreProc,
27       \   litestepMultiCommandStart,
28       \   litestepBangCommandStart,
29       \   litestepGenericDirective
31 syn match   litestepGenericDirective
32       \ contained display
33       \ '\<\h\w\+\>'
35 syn match   litestepBeginning
36       \ nextgroup=@litestepBeginnings skipwhite
37       \ '^'
39 syn keyword litestepPreProc
40       \ contained
41       \ Include
42       \ If
43       \ ElseIf
44       \ Else
45       \ EndIf
47 syn cluster litestepMultiCommands
48       \ contains=
49       \   litestepMultiCommand
51 syn match   litestepMultiCommandStart
52       \ nextgroup=@litestepMultiCommands
53       \ '\*'
55 syn match   litestepMultiCommand
56       \ contained display
57       \ '\<\h\w\+\>'
59 syn cluster litestepVariables
60       \ contains=
61       \   litestepBuiltinFolderVariable,
62       \   litestepBuiltinConditionalVariable,
63       \   litestepBuiltinResourceVariable,
64       \   litestepBuiltinGUIDFolderMappingVariable,
65       \   litestepVariable
67 syn region litestepVariableExpansion
68       \ display oneline transparent
69       \ contains=
70       \   @litestepVariables,
71       \   litestepNumber,
72       \   litestepMathOperator
73       \ matchgroup=litestepVariableExpansion
74       \ start='\$'
75       \ end='\$'
77 syn match litestepNumber
78       \ display
79       \ '\<\d\+\>'
81 syn region litestepString
82       \ display oneline contains=litestepVariableExpansion
83       \ start=+"+ end=+"+
85 " TODO: unsure about this one.
86 syn region litestepSubValue
87       \ display oneline contains=litestepVariableExpansion
88       \ start=+'+ end=+'+
90 syn keyword litestepBoolean
91       \ true
92       \ false
94 "syn keyword litestepLine
95 "      \ ?
97 "syn match   litestepColor
98 "      \ display
99 "      \ '\<\x\+\>'
101 syn match   litestepRelationalOperator
102       \ display
103       \ '=\|<[>=]\=\|>=\='
105 syn keyword litestepLogicalOperator
106       \ and
107       \ or
108       \ not
110 syn match   litestepMathOperator
111       \ contained display
112       \ '[+*/-]'
114 syn keyword litestepBuiltinDirective
115       \ LoadModule
116       \ LSNoStartup
117       \ LSAutoHideModules
118       \ LSNoShellWarning
119       \ LSSetAsShell
120       \ LSUseSystemDDE
121       \ LSDisableTrayService
122       \ LSImageFolder
123       \ ThemeAuthor
124       \ ThemeName
126 syn keyword litestepDeprecatedBuiltinDirective
127       \ LSLogLevel
128       \ LSLogFile
130 syn match   litestepVariable
131       \ contained display
132       \ '\<\h\w\+\>'
134 syn keyword litestepBuiltinFolderVariable
135       \ contained
136       \ AdminToolsDir
137       \ CommonAdminToolsDir
138       \ CommonDesktopDir
139       \ CommonFavorites
140       \ CommonPrograms
141       \ CommonStartMenu
142       \ CommonStartup
143       \ Cookies
144       \ Desktop
145       \ DesktopDir
146       \ DocumentsDir
147       \ Favorites
148       \ Fonts
149       \ History
150       \ Internet
151       \ InternetCache
152       \ LitestepDir
153       \ Nethood
154       \ Printhood
155       \ Programs
156       \ QuickLaunch
157       \ Recent
158       \ Sendto
159       \ Startmenu
160       \ Startup
161       \ Templates
162       \ WinDir
163       \ LitestepDir
165 syn keyword litestepBuiltinConditionalVariable
166       \ contained
167       \ Win2000
168       \ Win95
169       \ Win98
170       \ Win9X
171       \ WinME
172       \ WinNT
173       \ WinNT4
174       \ WinXP
176 syn keyword litestepBuiltinResourceVariable
177       \ contained
178       \ CompileDate
179       \ ResolutionX
180       \ ResolutionY
181       \ UserName
183 syn keyword litestepBuiltinGUIDFolderMappingVariable
184       \ contained
185       \ AdminTools
186       \ BitBucket
187       \ Controls
188       \ Dialup
189       \ Documents
190       \ Drives
191       \ Network
192       \ NetworkAndDialup
193       \ Printers
194       \ Scheduled
196 syn cluster litestepBangs
197       \ contains=
198       \   litestepBuiltinBang,
199       \   litestepBang
201 syn match   litestepBangStart
202       \ nextgroup=@litestepBangs
203       \ '!'
205 syn match   litestepBang
206       \ contained display
207       \ '\<\h\w\+\>'
209 syn keyword litestepBuiltinBang
210       \ contained
211       \ About
212       \ Alert
213       \ CascadeWindows
214       \ Confirm
215       \ Execute
216       \ Gather
217       \ HideModules
218       \ LogOff
219       \ MinimizeWindows
220       \ None
221       \ Quit
222       \ Recycle
223       \ Refresh
224       \ Reload
225       \ ReloadModule
226       \ RestoreWindows
227       \ Run
228       \ ShowModules
229       \ Shutdown
230       \ Switchuser
231       \ TileWindowsH
232       \ TileWindowsV
233       \ ToggleModules
234       \ UnloadModule
236 hi def link litestepTodo                              Todo
237 hi def link litestepComment                           Comment
238 hi def link litestepDirective                         Keyword
239 hi def link litestepGenericDirective                  litestepDirective
240 hi def link litestepPreProc                           PreProc
241 hi def link litestepMultiCommandStart                 litestepPreProc
242 hi def link litestepMultiCommand                      litestepDirective
243 hi def link litestepDelimiter                         Delimiter
244 hi def link litestepVariableExpansion                 litestepDelimiter
245 hi def link litestepNumber                            Number
246 hi def link litestepString                            String
247 hi def link litestepSubValue                          litestepString
248 hi def link litestepBoolean                           Boolean
249 "hi def link litestepLine 
250 "hi def link litestepColor                             Type
251 hi def link litestepOperator                          Operator
252 hi def link litestepRelationalOperator                litestepOperator
253 hi def link litestepLogicalOperator                   litestepOperator
254 hi def link litestepMathOperator                      litestepOperator
255 hi def link litestepBuiltinDirective                  litestepDirective
256 hi def link litestepDeprecatedBuiltinDirective        Error
257 hi def link litestepVariable                          Identifier
258 hi def link litestepBuiltinFolderVariable             Identifier
259 hi def link litestepBuiltinConditionalVariable        Identifier
260 hi def link litestepBuiltinResourceVariable           Identifier
261 hi def link litestepBuiltinGUIDFolderMappingVariable  Identifier
262 hi def link litestepBangStart                         litestepPreProc
263 hi def link litestepBang                              litestepDirective
264 hi def link litestepBuiltinBang                       litestepBang
266 let b:current_syntax = "litestep"
268 let &cpo = s:cpo_save
269 unlet s:cpo_save