Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 [1736] L is colored as a string
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

.oisyn
Tomato Guru

162 Posts

Posted - Sep 29 2009 :  6:00:48 PM  Show Profile  Reply with Quote
When using a capital L as an identifier in code, it's colored as a string
int L = 34;

However, when you use the L prefix for wchar_t strings, then it does NOT color it as a string
wchar_t * str = L"hi there";


Perhaps this was meant to be the other way around? Note that Visual Studio's own syntax highlighting does not consider the L prefix as part of the string, which may be what VA is trying to fix?

Edited by - .oisyn on Sep 29 2009 6:01:05 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 30 2009 :  4:47:11 PM  Show Profile  Reply with Quote
I am seeing the same effect here, thank you for the clear description:

case=32987

To be honest I don't know why is this happening but I changed the string color, and L changed as well in a line like

L;

so it is clearly colored as a string which is surprising...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000