0
|
1 " Vim syntax file
|
|
2 " Language: C++ with Unreal extensions
|
|
3 " Maintainer: Ludovic Chabant <https://ludovic.chabant.com>
|
|
4
|
|
5 if exists("b:current_syntax")
|
|
6 finish
|
|
7 endif
|
|
8
|
|
9 " Read the C++ syntax to start with
|
|
10 runtime! syntax/cpp.vim
|
|
11 unlet b:current_syntax
|
|
12
|
|
13
|
|
14 " Highlight Class and Function names
|
|
15 syn match cCustomParen "(" contains=cParen,cCppParen
|
|
16 syn match cCustomFunc "\w\+\s*(" contains=cCustomParen
|
|
17 syn match cCustomScope "::"
|
|
18 syn match cCustomClass "\w\+\s*::" contains=cCustomScope
|
|
19
|
|
20 hi def link cCustomFunc Function
|
|
21 hi def link cCustomClass Function
|
|
22
|