On Sun, Sep 13, 2009 at 11:22 PM, Magnus Leuthner <
[email protected]> wrote:

>
> >
> > I'm writing C++ programs and the 'string' data type is not highlighted
> like
> > all the other data types, can someone help me find the cause of this ?
> >
> > Here is a sample of code :
> > http://img16.imageshack.us/img16/8121/screenshotunsafeinttoch.png
> >
> > Here is my colorscheme : http://www.mediafire.com/?odneeix4ewm
> >
> > Here is my .vimrc file : http://www.mediafire.com/?hmdylmmymw9
>
> Same behaviour here, char is highlighted, string isn't. I assume this
> is desired behaviour since string is strictly speaking not a
> "built-in" atomic type that the compiler understands, it is a class
> defined in the standard headers that are bundled with the compiler. I
> assume the string type uses char internally, which is the actual type
> the compiler understands and that vim highlights for this reason.
>
> If vim highlighted every class defined somewhere in the C++ standard
> library specification, I guess there'd be a lot of unwanted coloring
> going on.
>
> Just my guess.
>
> Mac
>
> >
> It's because String isn't a C++ built-in data type, but a custom one
declared in my header file in a class. Is there a way to highlight specific
words in a colorscheme? Like in this case 'string' ?

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

Reply via email to