I'm trying to configure the
highlight to highlight keywords of my C++ project.
Here is the content of
syn match cCustomParen "?=(" contains=cParen,cCppParen syn match cCustomFunc "\w\+\s*(\@=" contains=cCustomParen hi CustomFunc guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=lightyellow ctermbg=NONE cterm=bold hi def link cCustomFunc CustomFunc syn match cCustomClassName "(?<=^class\s)\w\+" hi def link cCustomClassName CustomFunc
In a word, here I'm trying to highlight the function name and the class name. However, the function name is highlighted but the class name isn't.
As you see, the function names, such as
size, have been highlighted by the color
lightyellow, but the class names, such as
Test2 are still white.
How could I highlight the class name? My
cCustomCLassName is not correct?