codetools: auto indent: fixed parsing begin in statements

git-svn-id: trunk@22530 -
This commit is contained in:
mattias 2009-11-11 13:08:30 +00:00
parent a19fadb902
commit 25b091dfef

View File

@ -750,7 +750,7 @@ begin
if CompareIdentifiers('BEGIN',r)=0 then begin
while Stack.TopType
in (bbtAllIdentifierSections+bbtAllCodeSections+bbtAllBrackets
+[bbtDefinition,bbtProcedureModifiers,bbtProcedureHead])
+[bbtDefinition,bbtProcedureModifiers,bbtProcedureHead,bbtStatement])
do
EndBlock;
case Stack.TopType of
@ -758,7 +758,7 @@ begin
BeginBlock(bbtMainBegin);
bbtProcedure,bbtFunction:
BeginBlock(bbtProcedureBegin);
bbtMainBegin,bbtProcedureBegin:
bbtMainBegin,bbtProcedureBegin,bbtStatement:
BeginBlock(bbtFreeBegin);
bbtCaseElse,bbtCaseColon:
BeginBlock(bbtCaseBegin);