SynEdit, PasHL: fix "helper for" should not generate "foldnode-info" for "for". issue #33551

git-svn-id: trunk@57614 -
This commit is contained in:
martin 2018-04-06 21:06:31 +00:00
parent 96169209a1
commit 535304ef18

View File

@ -1165,7 +1165,8 @@ function TSynPasSyn.Func39: TtkTokenKind;
begin
if KeyComp('For') then begin
Result := tkKey;
StartPascalCodeFoldBlock(cfbtForDo);
if TopPascalCodeFoldBlockType in PascalStatementBlocks then
StartPascalCodeFoldBlock(cfbtForDo);
end
else
if KeyComp('Shl') then Result := tkKey else Result := tkIdentifier;