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 / web.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  1.0 KB  |  30 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language   : WEB
  3. " Maintainer : Andreas Scherer <andreas.scherer@pobox.com>
  4. " Last change: August 23, 1999
  5.  
  6. " Details of the WEB language can be found in the article by Donald E. Knuth,
  7. " "The WEB System of Structured Documentation", included as "webman.tex" in
  8. " the standard WEB distribution, available for anonymous ftp at
  9. " ftp://labrea.stanford.edu/pub/tex/web/.
  10.  
  11. " Remove any old syntax stuff hanging around
  12. syntax clear
  13.  
  14. " Although WEB is the ur-language for the "Literate Programming" paradigm,
  15. " we base this syntax file on the modern superset, CWEB.  Note: This shortcut
  16. " may introduce some illegal constructs, e.g., CWEB's "@c" does _not_ start a
  17. " code section in WEB.  Anyway, I'm not a WEB programmer.
  18. source <sfile>:p:h/cweb.vim
  19.  
  20. " Replace C/C++ syntax by Pascal syntax.
  21. syntax include @webIncludedC <sfile>:p:h/pascal.vim
  22.  
  23. " Double-@ means single-@, anywhere in the WEB source (as in CWEB).
  24. " Don't misinterpret "@'" as the start of a Pascal string.
  25. syntax match webIgnoredStuff "@[@']"
  26.  
  27. let b:current_syntax = "web"
  28.  
  29. " vim: ts=8
  30.