62 lines · 1.7 KB · Text
RawDownload
" Vim syntax file" Language:	C++" Maintainer:	Ken Shan <ccshan@post.harvard.edu>" Last Change:	2002 Jul 15 " For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600  syntax clearelseif exists("b:current_syntax")  finishendif " Read the C syntax to start withif version < 600  so <sfile>:p:h/c.vimelse  runtime! syntax/c.vim  unlet b:current_syntaxendif " C++ extentionssyn keyword cppStatement	new delete this friend usingsyn keyword cppAccess		public protected privatesyn keyword cppType		inline virtual explicit export bool wchar_tsyn keyword cppExceptions	throw try catchsyn keyword cppOperator		operator typeidsyn keyword cppOperator		and bitor or xor compl bitand and_eq or_eq xor_eq not not_eqsyn match cppCast		"\<\(const\|static\|dynamic\|reinterpret\)_cast\s*<"me=e-1syn match cppCast		"\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"syn keyword cppStorageClass	mutablesyn keyword cppStructure	class typename template namespacesyn keyword cppNumber		NPOSsyn keyword cppBoolean		true false " The minimum and maximum operators in GNU C++syn match cppMinMax "[<>]?" " Default highlightingif version >= 508 || !exists("did_cpp_syntax_inits")  if version < 508    let did_cpp_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  HiLink cppAccess		cppStatement  HiLink cppCast		cppStatement  HiLink cppExceptions		Exception  HiLink cppOperator		Operator  HiLink cppStatement		Statement  HiLink cppType		Type  HiLink cppStorageClass	StorageClass  HiLink cppStructure		Structure  HiLink cppNumber		Number  HiLink cppBoolean		Boolean  delcommand HiLinkendif let b:current_syntax = "cpp" " vim: ts=8