gnash.vim 3.4 KB

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