Matt Wozniski wrote: > On Tue, Oct 21, 2008 at 9:09 AM, Ben Schmidt > <[EMAIL PROTECTED]> wrote: >>> 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 > > Don't you mean ~/.vim/after/syntax/cpp.vim ?
Nope. "I meant what I said, and I said what I meant. An elephant's faithful, one hundred percent!" You can put it in the after-directory if you want to, but it will work just fine outside it. It doesn't set b:current_syntax so the built-in highlighting will load just fine after it, and in addition to it. (The built-in highlighting doesn't clear syntax, if that's what you were thinking.) Cheers, Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
