blob: 413ebaa643b4076d97f0e296c36a49296f8a8893 [file] [log] [blame]
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +02001" Vim syntax file
2" Language: gnash(1) configuration files
3" http://www.gnu.org/software/gnash/manual/gnashuser.html#gnashrc
4" Maintainer: Thilo Six <T.Six@gmx.de>
5" Last Change: 2011 Apr 28
6" Credidts: derived from readline.vim
7" Nikolai Weibull
8"
9
10" For version 5.x: Clear all syntax items
11" For version 6.x: Quit when a syntax file was already loaded
12if version < 600
13 syntax clear
14elseif exists ("b:current_syntax")
15 finish
16endif
17
18let s:cpo_save = &cpo
19set cpo&vim
20
21
22syn case match
23
24syn keyword GnashTodo contained TODO FIXME XXX NOTE
25
26syn region GnashComment display oneline start='^\s*#' end='$'
27 \ contains=GnashTodo,@Spell
28
29syn match GnashNumber display '\<\d\+\>'
30
31syn case ignore
32syn keyword GnashOn ON YES TRUE
33syn keyword GnashOff OFF NO FALSE
34syn case match
35
36syn match GnashSet '^\s*set\>'
37syn match GnashSet '^\s*append\>'
38
39syn match GnashKeyword '\<CertDir\>'
40syn match GnashKeyword '\<ASCodingErrorsVerbosity\>'
41syn match GnashKeyword '\<CertFile\>'
42syn match GnashKeyword '\<EnableExtensions\>'
43syn match GnashKeyword '\<HWAccel\>'
44syn match GnashKeyword '\<LCShmKey\>'
45syn match GnashKeyword '\<LocalConnection\>'
46syn match GnashKeyword '\<MalformedSWFVerbosity\>'
47syn match GnashKeyword '\<Renderer\>'
48syn match GnashKeyword '\<RootCert\>'
49syn match GnashKeyword '\<SOLReadOnly\>'
50syn match GnashKeyword '\<SOLSafeDir\>'
51syn match GnashKeyword '\<SOLreadonly\>'
52syn match GnashKeyword '\<SOLsafedir\>'
53syn match GnashKeyword '\<StartStopped\>'
54syn match GnashKeyword '\<StreamsTimeout\>'
55syn match GnashKeyword '\<URLOpenerFormat\>'
56syn match GnashKeyword '\<XVideo\>'
57syn match GnashKeyword '\<actionDump\>'
58syn match GnashKeyword '\<blacklist\>'
59syn match GnashKeyword '\<debugger\>'
60syn match GnashKeyword '\<debuglog\>'
61syn match GnashKeyword '\<delay\>'
62syn match GnashKeyword '\<enableExtensions\>'
63syn match GnashKeyword '\<flashSystemManufacturer\>'
64syn match GnashKeyword '\<flashSystemOS\>'
65syn match GnashKeyword '\<flashVersionString\>'
66syn match GnashKeyword '\<ignoreFSCommand\>'
67syn match GnashKeyword '\<ignoreShowMenu\>'
68syn match GnashKeyword '\<insecureSSL\>'
69syn match GnashKeyword '\<localSandboxPath\>'
70syn match GnashKeyword '\<localdomain\>'
71syn match GnashKeyword '\<localhost\>'
72syn match GnashKeyword '\<microphoneDevice\>'
73syn match GnashKeyword '\<parserDump\>'
74syn match GnashKeyword '\<pluginsound\>'
75syn match GnashKeyword '\<quality\>'
76syn match GnashKeyword '\<solLocalDomain\>'
77syn match GnashKeyword '\<sound\>'
78syn match GnashKeyword '\<splashScreen\>'
79syn match GnashKeyword '\<startStopped\>'
80syn match GnashKeyword '\<streamsTimeout\>'
81syn match GnashKeyword '\<urlOpenerFormat\>'
82syn match GnashKeyword '\<verbosity\>'
83syn match GnashKeyword '\<webcamDevice\>'
84syn match GnashKeyword '\<whitelist\>'
85syn match GnashKeyword '\<writelog\>'
86
87hi def GnashOn ctermfg=Green guifg=Green
88hi def GnashOff ctermfg=Red guifg=Red
89hi def link GnashComment Comment
90hi def link GnashTodo Todo
91hi def link GnashString String
92hi def link GnashNumber Normal
93hi def link GnashSet String
94hi def link GnashKeyword Keyword
95
96let b:current_syntax = "gnash"
97
98let &cpo = s:cpo_save
99unlet s:cpo_save