Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Syntax coloring missing for non-member end()

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
Tickwick Posted - Apr 13 2016 : 12:35:40 PM
VA_X.dll file version 10.9.2094.0 built 2016.03.25
DevEnv.exe version 14.0.25123.0 Enterprise
msenv.dll version 14.0.25123.0
Comctl32.dll version 6.10.10586.0
Windows 10 10.0 Build 10586


The syntax coloring is not applied for the non-member end() iterator function, see attached screenshot.



5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 15 2016 : 2:57:19 PM
Thank you for the update. I am not sure why this is now working, but was not working before. I am seeing the same Alt-g menu as you, and the same coloring and italic behaviour as well.

If this goes wrong again, please have a look at the Alt-g menu on "end", or what ever the problem function is, and see if this offers any clues.
Tickwick Posted - Apr 15 2016 : 2:53:20 PM
Everything seems to be working fine now, not sure why tho, nothing changed except some Windows updates. Checked on a different PC aswell and all is good, with or without italics and bold.
Attached screenshots anyway, not sure what fixed it.





feline Posted - Apr 14 2016 : 11:47:19 AM
Thank you for the very clear example code. That is interesting, I did not know, or had forgotten, that "begin" and "end" were exposed like that. I always used to use "vec.begin" and "vec.end".

If you have the time, can you try making a new, default C++ console project, and then copy and paste this code into it. What coloring do you now get?

I have:

VA Options -> Coloring and Attributes -> Show stable symbols in italics

turned on.

With this code in my main test solution, all instances of "end" are colored as a function, but only the instances that are highlighted for you are shown in italics for me.

Testing the same code in a new, default C++ console project, all instances of end are colored and shown in italics.

Can you please try pressing Alt-G on the instances of "end" that are not colored and see what is offered? If VA is picking up another definition of the symbol "end" on its own, this should give us a clue as to where that reference is.
Tickwick Posted - Apr 14 2016 : 06:31:48 AM




feline Posted - Apr 13 2016 : 3:51:53 PM
Could you post a bit more code, to give this some context, so I can get a sense of what you are doing.

If you place the caret into "end" does VA show the expected, the correct information in the context and definition fields, normally shown at the top of the editor window.

There is a known limitation, that if the same name is used for different things, so a local variable and a function, this can confuse our syntax coloring code, since we have to run very quickly, to keep up with scrolling, and don't always have much context to work with when applying coloring, so this could be what is happening here.

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