home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-09-25 | 1.2 KB | 42 lines | [TEXT/VIM!] |
- " Vim syntax file
- " Language: C++
- " Maintainer: Ken Shan <ken@digitas.harvard.edu>
- " Last change: 1999 Jan 24
-
- " Remove any old syntax stuff hanging around
- syn clear
-
- " Read the C syntax to start with
- source <sfile>:p:h/c.vim
-
- " C++ extentions
-
- syn keyword cppStatement new delete this friend using
- syn keyword cppAccess public protected private
- syn keyword cppType inline virtual explicit export bool wchar_t
- syn keyword cppExceptions throw try catch
- syn keyword cppOperator operator typeid
- syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1
- syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
- syn keyword cppStorageClass mutable
- syn keyword cppStructure class typename template namespace
- syn keyword cppNumber NPOS
- syn keyword cppBoolean true false
-
- if !exists("did_cpp_syntax_inits")
- let did_cpp_syntax_inits = 1
- hi link cppAccess cppStatement
- hi link cppCast cppStatement
- hi link cppExceptions cppStatement
- hi link cppStatement Statement
- hi link cppType Type
- hi link cppStorageClass StorageClass
- hi link cppStructure Structure
- hi link cppNumber Number
- hi link cppBoolean Boolean
- endif
-
- let b:current_syntax = "cpp"
-
- " vim: ts=8
-