codetools: auto indenter: fixed parsing in bbtStatement

git-svn-id: trunk@22868 -
This commit is contained in:
mattias 2009-11-30 09:16:11 +00:00
parent 6d42a4b2d0
commit 45f8f39a9e

View File

@ -161,7 +161,7 @@ const
bbtTry,bbtFinally,bbtExcept,
bbtIfThen,bbtIfElse,bbtIfBegin];
bbtAllStatements = bbtAllStatementParents+[
bbtStatementRoundBracket,bbtStatementEdgedBracket];
bbtStatement,bbtStatementRoundBracket,bbtStatementEdgedBracket];
bbtAllBrackets = [bbtTypeRoundBracket,bbtTypeEdgedBracket,
bbtStatementRoundBracket,bbtStatementEdgedBracket];
const
@ -1097,7 +1097,8 @@ begin
BeginBlock(bbtDefinition);
end;
if (Stack.TopType in bbtAllStatementParents)
and (not AtomStartedBlock) and (not AtomEndedBlock) then begin
and (not AtomStartedBlock) and (not AtomEndedBlock)
and (r^<>';') then begin
// new statement
BeginBlock(bbtStatement);
end;