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 / change.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  925 b   |  28 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language   : WEB Changes
  3. " Maintainer : Andreas Scherer <andreas.scherer@pobox.com>
  4. " Last change: August 23, 1999
  5.  
  6. " Details of the change mechanism of the WEB and CWEB languages can be found
  7. " in the articles by Donald E. Knuth and Silvio Levy cited in "web.vim" and
  8. " "cweb.vim" respectively.
  9.  
  10. " Remove any old syntax stuff hanging around
  11. syn clear
  12.  
  13. " We distinguish two groups of material, (a) stuff between @x..@y, and
  14. " (b) stuff between @y..@z. WEB/CWEB ignore everything else in a change file.
  15. syn region changeFromMaterial start="^@x.*$"ms=e+1 end="^@y.*$"me=s-1
  16. syn region changeToMaterial start="^@y.*$"ms=e+1 end="^@z.*$"me=s-1
  17.  
  18. if !exists("did_change_syntax_inits")
  19.   let did_change_syntax_inits = 1
  20.   " The default methods for highlighting. Can be overridden later.
  21.   hi link changeFromMaterial String
  22.   hi link changeToMaterial Statement
  23. endif
  24.  
  25. let b:current_syntax = "change"
  26.  
  27. " vim: ts=8
  28.