标题打错了 = =|
算了,函数与作用域高亮参见:
http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim/773392#773392
咱改了一下,在c.vim中加入下面几句
" Highlight Function and Scope names
syn match cCustomParen "(" contains=cParen contains=cCppParen
syn match cCustomFunc "\<\h\w*\s*(" contains=cCustomParen
syn match cCustomEquals "::"
syn match cCustomScope "\<\h\w*\s*::" contains=cCustomEquals
hi def link cCustomFunc Function
hi def link cCustomScope Function
算了,函数与作用域高亮参见:
http://stackoverflow.com/questions/736701/class-function-names-highlighting-in-vim/773392#773392
咱改了一下,在c.vim中加入下面几句
" Highlight Function and Scope names
syn match cCustomParen "(" contains=cParen contains=cCppParen
syn match cCustomFunc "\<\h\w*\s*(" contains=cCustomParen
syn match cCustomEquals "::"
syn match cCustomScope "\<\h\w*\s*::" contains=cCustomEquals
hi def link cCustomFunc Function
hi def link cCustomScope Function