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 / runtime / syntax / objcpp.vim < prev    next >
Encoding:
Text File  |  2010-08-14  |  786 b   |  29 lines

  1. " Vim syntax file
  2. " Language:        Objective C++
  3. " Maintainer:        Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com>
  4. " Ex-Maintainer:    Anthony Hodsdon <ahodsdon@fastmail.fm>
  5. " Last Change:        2007 Oct 29
  6.  
  7. " For version 5.x: Clear all syntax items
  8. " For version 6.x: Quit when a syntax file was already loaded
  9. if version < 600
  10.    syntax clear
  11. elseif exists("b:current_syntax")
  12.    finish
  13. endif
  14.  
  15. " Read in C++ and ObjC syntax files
  16. if version < 600
  17.    so <sfile>:p:h/cpp.vim
  18.    so <sfile>:p:h/objc.vim
  19. else
  20.    runtime! syntax/cpp.vim
  21.    unlet b:current_syntax
  22.    runtime! syntax/objc.vim
  23. endif
  24.  
  25. syn keyword objCppNonStructure    class template namespace transparent contained
  26. syn keyword objCppNonStatement    new delete friend using transparent contained
  27.  
  28. let b:current_syntax = "objcpp"
  29.