home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / modula2.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  1.2 KB  |  43 lines

  1. " Vim syntax file
  2. " Language:    Modula 2
  3. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  4. " Last change:    1997 Sep 14
  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. " Remove any old syntax stuff hanging around
  10. syn clear
  11.  
  12. syn case ignore
  13.  
  14. " A bunch of keywords
  15. syn keyword modula2Keyword and array by case const definition div do else
  16. syn keyword modula2Keyword elsif exit export for from if implementation import
  17. syn keyword modula2Keyword in loop mod not of or pointer qualified record
  18. syn keyword modula2Keyword repeat return set then to type until var while with
  19.  
  20. " Special keywords
  21. syn keyword modula2Block procedure function module
  22. syn keyword modula2Block begin end
  23.  
  24. " Comments
  25. syn region modula2Comment start="{" end="}"
  26. syn region modula2Comment start="(\*" end="\*)"
  27.  
  28. " Strings
  29. syn region modula2String start=+"+ end=+"+
  30.  
  31. if !exists("did_modula2_syntax_inits")
  32.   let did_modula2_syntax_inits = 1
  33.   " The default methods for highlighting.  Can be overridden later
  34.   hi link modula2Keyword    Statement
  35.   hi link modula2Block    PreProc
  36.   hi link modula2Comment    Comment
  37.   hi link modula2String    String
  38. endif
  39.  
  40. let b:current_syntax = "modula2"
  41.  
  42. " vim: ts=8
  43.