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

  1. " Vim syntax file
  2. " Language:    C++
  3. " Maintainer:    Ken Shan <ken@digitas.harvard.edu>
  4. " Last change:    1999 Jan 24
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. " Read the C syntax to start with
  10. source <sfile>:p:h/c.vim
  11.  
  12. " C++ extentions
  13.  
  14. syn keyword cppStatement    new delete this friend using
  15. syn keyword cppAccess        public protected private
  16. syn keyword cppType        inline virtual explicit export bool wchar_t
  17. syn keyword cppExceptions    throw try catch
  18. syn keyword cppOperator        operator typeid
  19. syn match cppCast        "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1
  20. syn match cppCast        "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
  21. syn keyword cppStorageClass    mutable
  22. syn keyword cppStructure    class typename template namespace
  23. syn keyword cppNumber    NPOS
  24. syn keyword cppBoolean    true false
  25.  
  26. if !exists("did_cpp_syntax_inits")
  27.   let did_cpp_syntax_inits = 1
  28.   hi link cppAccess    cppStatement
  29.   hi link cppCast    cppStatement
  30.   hi link cppExceptions    cppStatement
  31.   hi link cppStatement    Statement
  32.   hi link cppType    Type
  33.   hi link cppStorageClass    StorageClass
  34.   hi link cppStructure    Structure
  35.   hi link cppNumber    Number
  36.   hi link cppBoolean    Boolean
  37. endif
  38.  
  39. let b:current_syntax = "cpp"
  40.  
  41. " vim: ts=8
  42.