Erroneous Highlighting of IF/THEN/ENDIF

techElder

Well-known member
Just something I've noticed. [EDIT2] PE 6.0.9.3 Windows 7

The highlighting of matching IF with ENDIF is confused when this form is nested inside:

Code:
IF variable ?? value THEN address
Code:
[color=Blue]if [/color][color=Purple]b0 [/color][color=DarkCyan]= [/color][color=Purple]b1 [/color][color=Blue]then
   if [/color][color=Purple]b2 [/color][color=DarkCyan]= [/color][color=Purple]b3 [/color][color=Blue]then [/color][color=Black]myExit[/color]
[color=Blue]endif [/color]
[color=Black]myExit:[/color]
[color=Blue]end[/color]
Adding ": endif" to line 2 to force the highlight matching won't pass syntax check for endif.

EDIT 2: Simple answer must be to "don't do that!" :D
 
Last edited:
Top