> It seems that 'typeof' is a keyword in C++. But it is not syntax > highlighted. I'm wondering how to modify syntax/c.vim to make > 'typeof' highlighted?
Technically most correct is probably to put syn keyword cppOperator typeof in a file ~/.vim/syntax/cpp.vim as typeof is an operator. However, operators often aren't highlighted, so you might prefer to use something else, even though technically incorrect: cppType or cppStatement are the best candidates, I think. new, delete, this and more are called statements by Vim even though they aren't, so there's good precedent... I figured this out by looking at $VIMRUNTIME/syntax/cpp.vim Smiles, Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
