home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / syntax / vgrindefs.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  1.2 KB  |  46 lines

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