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 / syntax / model.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  1.4 KB  |  45 lines

  1. " Vim syntax file
  2. " Language:    Model
  3. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  4. " Last Change:    2005 Jun 20
  5.  
  6. " very basic things only (based on the vgrindefs file).
  7. " If you use this language, please improve it, and send me the patches!
  8.  
  9. " Quit when a (custom) syntax file was already loaded
  10. if exists("b:current_syntax")
  11.   finish
  12. endif
  13.  
  14. " A bunch of keywords
  15. syn keyword modelKeyword abs and array boolean by case cdnl char copied dispose
  16. syn keyword modelKeyword div do dynamic else elsif end entry external FALSE false
  17. syn keyword modelKeyword fi file for formal fortran global if iff ift in integer include
  18. syn keyword modelKeyword inline is lbnd max min mod new NIL nil noresult not notin od of
  19. syn keyword modelKeyword or procedure public read readln readonly record recursive rem rep
  20. syn keyword modelKeyword repeat res result return set space string subscript such then TRUE
  21. syn keyword modelKeyword true type ubnd union until varies while width
  22.  
  23. " Special keywords
  24. syn keyword modelBlock beginproc endproc
  25.  
  26. " Comments
  27. syn region modelComment start="\$" end="\$" end="$"
  28.  
  29. " Strings
  30. syn region modelString start=+"+ end=+"+
  31.  
  32. " Character constant (is this right?)
  33. syn match modelString "'."
  34.  
  35. " Define the default highlighting.
  36. " Only used when an item doesn't have highlighting yet
  37. hi def link modelKeyword    Statement
  38. hi def link modelBlock        PreProc
  39. hi def link modelComment    Comment
  40. hi def link modelString        String
  41.  
  42. let b:current_syntax = "model"
  43.  
  44. " vim: ts=8 sw=2
  45.