the following (tested) code is wrongly highlighted:

//*
echo "branch one";
/*/
echo "branch two";
//*/


It represents a basic form of a common trick: with a simple add/remove of the
first forward slash you can switch from branch A to B.
It is very useful because during developmente you have a good visual hint of
what code you are running (that you missed using if(true/false) ).

But in Pspad when branch A is active, branch B doesn't look commentend.
Somehow the regex fails to recognize "/*/" as the beginning of a comment.
I know the regexps don't have the expressive power of languages like php, but in
this case maybe it can be fixed.

Thank you!

-- 
<http://forum.pspad.com/read.php?4,65760,65760>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem