Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1736] L is colored as a string

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
.oisyn Posted - Sep 29 2009 : 6:00:48 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Sep 30 2009 : 4:47:11 PM
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...

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000