From a3eed789e4aaa9a755e321191bae80932399bd37 Mon Sep 17 00:00:00 2001 From: mattias Date: Sun, 29 Nov 2009 22:22:56 +0000 Subject: [PATCH] codetools: indenter: closing statement on else git-svn-id: trunk@22860 - --- components/codetools/codebeautifier.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/codetools/codebeautifier.pas b/components/codetools/codebeautifier.pas index 36178fb2eb..48deb624ea 100644 --- a/components/codetools/codebeautifier.pas +++ b/components/codetools/codebeautifier.pas @@ -794,6 +794,8 @@ begin case UpChars[r[1]] of 'L': // EL if CompareIdentifiers('ELSE',r)=0 then begin + if Stack.TopType=bbtStatement then + EndBlock; case Stack.TopType of bbtCaseOf,bbtCaseColon: begin