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 / mac / vim55rt.sit / runtime / syntax / viminfo.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  905 b   |  35 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:    Vim .viminfo file
  3. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  4. " Last change:    1999 Aug 19
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. " The lines that are NOT recognized
  10. syn match viminfoError "^[^\t].*"
  11.  
  12. " The one-character one-liners that are recognized
  13. syn match viminfoStatement "^[/&$@:?=%!<]"
  14.  
  15. " The two-character one-liners that are recognized
  16. syn match viminfoStatement "^['>"]."
  17. syn match viminfoStatement "^\~[/&]"
  18. syn match viminfoStatement "^\~[hH]"
  19. syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]"
  20.  
  21. " Comments
  22. syn match viminfoComment "^#.*"
  23.  
  24. if !exists("did_viminfo_syntax_inits")
  25.   let did_viminfo_syntax_inits = 1
  26.   " The default methods for highlighting.  Can be overridden later
  27.   hi link viminfoComment        Comment
  28.   hi link viminfoError        Error
  29.   hi link viminfoStatement    Statement
  30. endif
  31.  
  32. let b:current_syntax = "viminfo"
  33.  
  34. " vim: ts=8
  35.