Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Wrong color for local variable

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
Zeblote Posted - May 15 2018 : 2:01:00 PM


"BrickBox" should be green, since it is not a method. I don't have any methods called "BrickBox".
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 16 2018 : 10:26:10 AM
To a degree we do try and do this. The bug is actually a bit more specific than just looking like a function signature. If you are passing literal integer values to the constructor then VA will colour the code correctly, but the bug shows up when passing parameters to the constructor.

Trying to make perfect sense of C++ without getting to compile it is "interesting" :)
Zeblote Posted - May 15 2018 : 3:28:55 PM
quote:
Originally posted by feline

Thank you for the clear screen shot. This is currently a known problem with our colouring code. Just looking at the code in the screen shot, it's not instantly obvious that "BrickBox" is a variable and not the name of a function, since the syntax looks a lot like a function declaration. We want our colouring code to run very quickly, so it can keep up with you working, but that does leave us prone to some problems.

case=60805



Is it possible to detect that it is currently inside a function definition and thus there can be no other ones?
feline Posted - May 15 2018 : 3:15:27 PM
Thank you for the clear screen shot. This is currently a known problem with our colouring code. Just looking at the code in the screen shot, it's not instantly obvious that "BrickBox" is a variable and not the name of a function, since the syntax looks a lot like a function declaration. We want our colouring code to run very quickly, so it can keep up with you working, but that does leave us prone to some problems.

case=60805

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