>
> 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

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

Reply via email to