修改 $VIM/vim73/syntax/c.vim, 在其中加入:
自己修改,高亮数组: " 对数组变量,即中括号前面的变量加亮 syn match cVariant "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^\[\]]*\]\["me=e-2 syn match cVariant "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*\["me=e-1 hi cVariant gui=NONE guifg=LightBlue |
|
来自: Rainboy913 > 《Gvim》