Page 1 of 1

Problem with highlighting words

Posted: Tue Mar 15, 2016 11:56 pm
by davido
In the code below the word Variable is Defined in line 1 and also occurs in lines 3,4 & 5.

If you double-click on Variable in line 1 it is highlighted and so are all the those in lines 4 & 5.
Note that those in line 3 are not highlighted.

Code: Select all

Define Variable.i, NewVariable.i

NewVariable + Variable*Variable
NewVariable+ Variable+Variable
NewVariable + Variable
I appreciate that this is a very minor problem.

Re: Problem with highlighting words

Posted: Wed Mar 16, 2016 12:28 am
by Tenaja
This issue is also in the Win64 version.

It likely has to do with the asterisk being treated as a character, because it can be part of a pointer variable name. The simple workaround is to use spaces around asterisks.

Since both "variable" and "*variable" are valid keywords, this is one of those exceptional parsing situations that requires its own code (either lots of tests, or making the asterisk have its own character class), and is probably why the issue exists, and also why fixing it is likely to stay low on the priority list.