Syntax coloring bug
Summary
A single setverdict statement is colored red, while the others remained
Steps and/or TTCN-3 code to reproduce
Create a single module
module my {
type port mypt message{
inout charstring;
}
type component myct{
var integer v := 0;
port mypt P;
}
altstep myas(integer p := v, integer q := myfn2()) runs on myct{
[] any port.receive{if(p==0 and q==0){setverdict(pass);}else{setverdict(fail);}}
}
function myfn2() runs on myct return integer{
return 0;
}
function myfn(integer p := v, integer q := myfn2()) runs on myct{
if(q==0 and p==0){P.send("1")};
default d = activate(myas());
P.receive("krumplinudli");
deactivate(d);
}
testcase mytc(integer p := v, integer q := myfn2()) runs on myct{
if(p==0 and q==0){setverdict(pass);}else{setverdict(fail);}
var myct ptc := myct.create;
connect(mtc:P, ptc:P);
ptc.start(myfn());
P.receive("1");
P.send("heloka");
ptc.done;
}
}
Also, make sure that Window > Preferences > TITAN Preferences > Syntax Coloring > Enable semantic highlighting (EXPERIMENTAL) is checked.
What is the current bug behavior?
The last setverdict statement is colored red instead of blue (the color of all other setverdict statements) -- although couldn't reproduce it for the second time -- maybe unchecking Enable semantic highlighting (EXPERIMENTAL) automatically unchecked something that I didn't check back in when re-checking Enable semantic highlighting (EXPERIMENTAL)?
What is the expected correct behavior?
All setverdict statements shall be blue.
Titan version
8.1.0
Platform details (OS type and version)
Microsoft Windows 10 Enterprise 10.0.19042 /cc @aknappqwt