2788
|
1 " Vim syntax file
|
3557
|
2 " Maintainer: Thilo Six
|
|
3 " Contact: <vim-dev at vim dot org>
|
|
4 " http://www.vim.org/maillist.php#vim-dev
|
|
5 "
|
|
6 " Description: highlight gnash configuration files
|
2788
|
7 " http://www.gnu.org/software/gnash/manual/gnashuser.html#gnashrc
|
3557
|
8 " File: runtime/syntax/gnash.vim
|
|
9 " Last Change: 2012 May 19
|
3224
|
10 " Modeline: vim: ts=8:sw=2:sts=2:
|
3557
|
11 "
|
|
12 " Credits: derived from Nikolai Weibulls readline.vim
|
|
13 "
|
|
14 " License: VIM License
|
|
15 " Vim is Charityware, see ":help Uganda"
|
2788
|
16 "
|
|
17
|
|
18 " For version 5.x: Clear all syntax items
|
|
19 " For version 6.x: Quit when a syntax file was already loaded
|
|
20 if version < 600
|
|
21 syntax clear
|
3224
|
22 elseif exists("b:current_syntax") || &compatible
|
2788
|
23 finish
|
|
24 endif
|
|
25
|
|
26 syn case match
|
|
27 syn keyword GnashTodo contained TODO FIXME XXX NOTE
|
|
28
|
2833
|
29 " Comments
|
3557
|
30 syn match GnashComment "^#.*$" contains=@Spell,GnashTodo
|
|
31 syn match GnashComment "\s#.*$" contains=@Spell,GnashTodo
|
2788
|
32
|
|
33 syn match GnashNumber display '\<\d\+\>'
|
|
34
|
|
35 syn case ignore
|
|
36 syn keyword GnashOn ON YES TRUE
|
|
37 syn keyword GnashOff OFF NO FALSE
|
|
38
|
|
39 syn match GnashSet '^\s*set\>'
|
|
40 syn match GnashSet '^\s*append\>'
|
|
41
|
|
42 syn match GnashKeyword '\<CertDir\>'
|
|
43 syn match GnashKeyword '\<ASCodingErrorsVerbosity\>'
|
|
44 syn match GnashKeyword '\<CertFile\>'
|
|
45 syn match GnashKeyword '\<EnableExtensions\>'
|
|
46 syn match GnashKeyword '\<HWAccel\>'
|
|
47 syn match GnashKeyword '\<LCShmKey\>'
|
|
48 syn match GnashKeyword '\<LocalConnection\>'
|
|
49 syn match GnashKeyword '\<MalformedSWFVerbosity\>'
|
|
50 syn match GnashKeyword '\<Renderer\>'
|
|
51 syn match GnashKeyword '\<RootCert\>'
|
|
52 syn match GnashKeyword '\<SOLReadOnly\>'
|
|
53 syn match GnashKeyword '\<SOLSafeDir\>'
|
|
54 syn match GnashKeyword '\<SOLreadonly\>'
|
|
55 syn match GnashKeyword '\<SOLsafedir\>'
|
|
56 syn match GnashKeyword '\<StartStopped\>'
|
|
57 syn match GnashKeyword '\<StreamsTimeout\>'
|
|
58 syn match GnashKeyword '\<URLOpenerFormat\>'
|
|
59 syn match GnashKeyword '\<XVideo\>'
|
|
60 syn match GnashKeyword '\<actionDump\>'
|
|
61 syn match GnashKeyword '\<blacklist\>'
|
|
62 syn match GnashKeyword '\<debugger\>'
|
|
63 syn match GnashKeyword '\<debuglog\>'
|
|
64 syn match GnashKeyword '\<delay\>'
|
|
65 syn match GnashKeyword '\<enableExtensions\>'
|
|
66 syn match GnashKeyword '\<flashSystemManufacturer\>'
|
|
67 syn match GnashKeyword '\<flashSystemOS\>'
|
|
68 syn match GnashKeyword '\<flashVersionString\>'
|
|
69 syn match GnashKeyword '\<ignoreFSCommand\>'
|
|
70 syn match GnashKeyword '\<ignoreShowMenu\>'
|
|
71 syn match GnashKeyword '\<insecureSSL\>'
|
|
72 syn match GnashKeyword '\<localSandboxPath\>'
|
|
73 syn match GnashKeyword '\<localdomain\>'
|
|
74 syn match GnashKeyword '\<localhost\>'
|
|
75 syn match GnashKeyword '\<microphoneDevice\>'
|
|
76 syn match GnashKeyword '\<parserDump\>'
|
|
77 syn match GnashKeyword '\<pluginsound\>'
|
|
78 syn match GnashKeyword '\<quality\>'
|
|
79 syn match GnashKeyword '\<solLocalDomain\>'
|
|
80 syn match GnashKeyword '\<sound\>'
|
|
81 syn match GnashKeyword '\<splashScreen\>'
|
|
82 syn match GnashKeyword '\<startStopped\>'
|
|
83 syn match GnashKeyword '\<streamsTimeout\>'
|
|
84 syn match GnashKeyword '\<urlOpenerFormat\>'
|
|
85 syn match GnashKeyword '\<verbosity\>'
|
|
86 syn match GnashKeyword '\<webcamDevice\>'
|
|
87 syn match GnashKeyword '\<whitelist\>'
|
|
88 syn match GnashKeyword '\<writelog\>'
|
|
89
|
2833
|
90 hi def link GnashOn Identifier
|
|
91 hi def link GnashOff Preproc
|
2788
|
92 hi def link GnashComment Comment
|
|
93 hi def link GnashTodo Todo
|
2833
|
94 hi def link GnashNumber Type
|
2788
|
95 hi def link GnashSet String
|
|
96 hi def link GnashKeyword Keyword
|
|
97
|
|
98 let b:current_syntax = "gnash"
|
3224
|
99
|