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

  1. " Vim syntax file
  2. " Language:    kimwitu++
  3. " Maintainer:    Michael Piefel <piefel@informatik.hu-berlin.de>
  4. " Last change:    1999 Jul 20
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8. syn region cParen        transparent start='(' end=')' contains=ALLBUT,cParenError,cIncluded,cSpecial,cTodo,cUserLabel,kwtViewName
  9.  
  10. " Read the C++ syntax to start with
  11. source <sfile>:p:h/cpp.vim
  12.  
  13. " kimwitu++ extentions
  14.  
  15. syn keyword cType    integer real casestring nocasestring voidptr
  16.  
  17. " avoid unparsing rule sth:view being scanned as label
  18. syn clear   cUserCont
  19. syn match   cUserCont    "^\s*\I\i*\s*:$" contains=cUserLabel contained
  20. syn match   cUserCont    ";\s*\I\i*\s*:$" contains=cUserLabel contained
  21. syn match   cUserCont    "^\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained
  22. syn match   cUserCont    ";\s*\I\i*\s*:[^:]"me=e-1 contains=cUserLabel contained
  23.  
  24. " highlight phylum decls
  25. syn match   kwtPhylum    "^\I\i*:$"
  26. syn match   kwtPhylum    "^\I\i*\s*{\s*\(!\|\I\)\i*\s*}\s*:$"
  27.  
  28. syn keyword kwtStatement with foreach uview rview storageclass list
  29. syn match   kwtSep    "^%}$"
  30. syn match   kwtSep    "^%{\(\s\+\I\i*\)*$"
  31. syn region  kwtViews    start="->\s*\(\[\|<\)"hs=e+1 end=":"he=s-1 contains=cComment
  32. syn region  kwtViews    start="^\s\+\(\[\|<\)"hs=e+1 end=":"he=s-1 contains=cComment
  33. "syn region cText        transparent start='{' end='}' contains=ALLBUT,cParenError,cIncluded,cSpecial,cTodo,cUserCont,cUserLabel,cBitField
  34.  
  35.  
  36. if !exists("did_kwt_syntax_inits")
  37.   let did_kwt_syntax_inits = 1
  38.   hi link kwtStatement    Statement
  39.   hi link kwtSep    Delimiter
  40.   hi link kwtViews    Label
  41.   hi link kwtPhylum    Type
  42.   hi link cText        Comment
  43. endif
  44.  
  45. syn sync lines=300
  46.  
  47. let b:current_syntax = "kwt"
  48.  
  49. " vim: ts=8
  50.