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 ?
>
> Or am I missing something?
>   
If he edits the entire syntax/cpp.vim, then the modified version should 
go in ~/.vim/syntax/cpp.vim
If its just the one-liner, then as it modifies (well, in this case 
extends) the syntax highlighting, it should go into 
~/.vim/after/syntax/cpp.vim

Syntax highlighting is order-dependent (changes priority); however, 
keywords have top priority and so the order probably won't matter.

Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to