Bram Moolenaar | 8e5af3e | 2011-04-28 19:02:44 +0200 | [diff] [blame] | 1 | " 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 |
| 12 | if version < 600 |
| 13 | syntax clear |
| 14 | elseif exists ("b:current_syntax") |
| 15 | finish |
| 16 | endif |
| 17 | |
| 18 | let s:cpo_save = &cpo |
| 19 | set cpo&vim |
| 20 | |
| 21 | |
| 22 | syn case match |
| 23 | |
| 24 | syn keyword GnashTodo contained TODO FIXME XXX NOTE |
| 25 | |
| 26 | syn region GnashComment display oneline start='^\s*#' end='$' |
| 27 | \ contains=GnashTodo,@Spell |
| 28 | |
| 29 | syn match GnashNumber display '\<\d\+\>' |
| 30 | |
| 31 | syn case ignore |
| 32 | syn keyword GnashOn ON YES TRUE |
| 33 | syn keyword GnashOff OFF NO FALSE |
| 34 | syn case match |
| 35 | |
| 36 | syn match GnashSet '^\s*set\>' |
| 37 | syn match GnashSet '^\s*append\>' |
| 38 | |
| 39 | syn match GnashKeyword '\<CertDir\>' |
| 40 | syn match GnashKeyword '\<ASCodingErrorsVerbosity\>' |
| 41 | syn match GnashKeyword '\<CertFile\>' |
| 42 | syn match GnashKeyword '\<EnableExtensions\>' |
| 43 | syn match GnashKeyword '\<HWAccel\>' |
| 44 | syn match GnashKeyword '\<LCShmKey\>' |
| 45 | syn match GnashKeyword '\<LocalConnection\>' |
| 46 | syn match GnashKeyword '\<MalformedSWFVerbosity\>' |
| 47 | syn match GnashKeyword '\<Renderer\>' |
| 48 | syn match GnashKeyword '\<RootCert\>' |
| 49 | syn match GnashKeyword '\<SOLReadOnly\>' |
| 50 | syn match GnashKeyword '\<SOLSafeDir\>' |
| 51 | syn match GnashKeyword '\<SOLreadonly\>' |
| 52 | syn match GnashKeyword '\<SOLsafedir\>' |
| 53 | syn match GnashKeyword '\<StartStopped\>' |
| 54 | syn match GnashKeyword '\<StreamsTimeout\>' |
| 55 | syn match GnashKeyword '\<URLOpenerFormat\>' |
| 56 | syn match GnashKeyword '\<XVideo\>' |
| 57 | syn match GnashKeyword '\<actionDump\>' |
| 58 | syn match GnashKeyword '\<blacklist\>' |
| 59 | syn match GnashKeyword '\<debugger\>' |
| 60 | syn match GnashKeyword '\<debuglog\>' |
| 61 | syn match GnashKeyword '\<delay\>' |
| 62 | syn match GnashKeyword '\<enableExtensions\>' |
| 63 | syn match GnashKeyword '\<flashSystemManufacturer\>' |
| 64 | syn match GnashKeyword '\<flashSystemOS\>' |
| 65 | syn match GnashKeyword '\<flashVersionString\>' |
| 66 | syn match GnashKeyword '\<ignoreFSCommand\>' |
| 67 | syn match GnashKeyword '\<ignoreShowMenu\>' |
| 68 | syn match GnashKeyword '\<insecureSSL\>' |
| 69 | syn match GnashKeyword '\<localSandboxPath\>' |
| 70 | syn match GnashKeyword '\<localdomain\>' |
| 71 | syn match GnashKeyword '\<localhost\>' |
| 72 | syn match GnashKeyword '\<microphoneDevice\>' |
| 73 | syn match GnashKeyword '\<parserDump\>' |
| 74 | syn match GnashKeyword '\<pluginsound\>' |
| 75 | syn match GnashKeyword '\<quality\>' |
| 76 | syn match GnashKeyword '\<solLocalDomain\>' |
| 77 | syn match GnashKeyword '\<sound\>' |
| 78 | syn match GnashKeyword '\<splashScreen\>' |
| 79 | syn match GnashKeyword '\<startStopped\>' |
| 80 | syn match GnashKeyword '\<streamsTimeout\>' |
| 81 | syn match GnashKeyword '\<urlOpenerFormat\>' |
| 82 | syn match GnashKeyword '\<verbosity\>' |
| 83 | syn match GnashKeyword '\<webcamDevice\>' |
| 84 | syn match GnashKeyword '\<whitelist\>' |
| 85 | syn match GnashKeyword '\<writelog\>' |
| 86 | |
| 87 | hi def GnashOn ctermfg=Green guifg=Green |
| 88 | hi def GnashOff ctermfg=Red guifg=Red |
| 89 | hi def link GnashComment Comment |
| 90 | hi def link GnashTodo Todo |
| 91 | hi def link GnashString String |
| 92 | hi def link GnashNumber Normal |
| 93 | hi def link GnashSet String |
| 94 | hi def link GnashKeyword Keyword |
| 95 | |
| 96 | let b:current_syntax = "gnash" |
| 97 | |
| 98 | let &cpo = s:cpo_save |
| 99 | unlet s:cpo_save |