vgrindefs.vim 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. " Vim syntax file
  2. " Language: Vgrindefs
  3. " Maintainer: Bram Moolenaar <Bram@vim.org>
  4. " Last Change: 2005 Jun 20
  5. " The Vgrindefs file is used to specify a language for vgrind
  6. " Quit when a (custom) syntax file was already loaded
  7. if exists("b:current_syntax")
  8. finish
  9. endif
  10. " Comments
  11. syn match vgrindefsComment "^#.*"
  12. " The fields that vgrind recognizes
  13. syn match vgrindefsField ":ab="
  14. syn match vgrindefsField ":ae="
  15. syn match vgrindefsField ":pb="
  16. syn match vgrindefsField ":bb="
  17. syn match vgrindefsField ":be="
  18. syn match vgrindefsField ":cb="
  19. syn match vgrindefsField ":ce="
  20. syn match vgrindefsField ":sb="
  21. syn match vgrindefsField ":se="
  22. syn match vgrindefsField ":lb="
  23. syn match vgrindefsField ":le="
  24. syn match vgrindefsField ":nc="
  25. syn match vgrindefsField ":tl"
  26. syn match vgrindefsField ":oc"
  27. syn match vgrindefsField ":kw="
  28. " Also find the ':' at the end of the line, so all ':' are highlighted
  29. syn match vgrindefsField ":\\$"
  30. syn match vgrindefsField ":$"
  31. syn match vgrindefsField "\\$"
  32. " Define the default highlighting.
  33. " Only used when an item doesn't have highlighting yet
  34. hi def link vgrindefsField Statement
  35. hi def link vgrindefsComment Comment
  36. let b:current_syntax = "vgrindefs"
  37. " vim: ts=8