diff --git a/components/jcf2/Process/Returns/ReturnAfter.pas b/components/jcf2/Process/Returns/ReturnAfter.pas index 326eae4178..408ef190a1 100644 --- a/components/jcf2/Process/Returns/ReturnAfter.pas +++ b/components/jcf2/Process/Returns/ReturnAfter.pas @@ -85,6 +85,14 @@ begin exit; end; + { point 1b } + if (ptNext.HasParentNode(nHintDirectives)) then + begin + Result := False; + exit; + end; + + { point 2. to avoid the return, the next token must still be in the same property} if ptNext.HasParentNode(nProperty) and (ptNext.TokenType <> ttProperty) then