mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 15:20:30 +02:00
codetools: auto indent: fixed parsing begin in statements
git-svn-id: trunk@22530 -
This commit is contained in:
parent
a19fadb902
commit
25b091dfef
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user