model.vim 1.4 KB

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