syn match cppNamespacedConstant /::\zs[A-Z]\w*/
syn match cppNamespace /\<\w\+\(::\)\@=/
syn match cppNamespacedType /::\zs[A-Z]\w*\ze[ >]/

hi def link cppNamespace Include
hi def link cppNamespacedConstant Identifier
hi def link cppNamespacedType Type

syn match cppNamespacedConstant /::\zs[A-Z]\w*/
syn match cppNamespace /\<\w\+\(::\)\@=/
syn match cppNamespacedType /::\zs[A-Z]\w*\ze[ >{]/

hi def link cppNamespace Include
hi def link cppNamespacedConstant Identifier
hi def link cppNamespacedType Type

Tweak to custom syntax highlighting for C++
vim: Tweak to custom syntax highlighting for C++

jez/dotfiles,jez/dotfiles,jez/dotfiles