codetools: auto indent: unindent using next atom

git-svn-id: trunk@22344 -
This commit is contained in:
mattias 2009-10-29 17:09:00 +00:00
parent b66ad68b18
commit 653c1f4acf

View File

@ -1082,9 +1082,10 @@ begin
Result:=Stack.Top;
if Result<0 then exit;
if (CleanPos<1) or (CleanPos>length(Source))
or (not (Source[CleanPos] in [' ',#9])) then
or (Source[CleanPos] in [' ',#9]) then
exit;
ReadRawNextPascalAtom(Source,CleanPos,AtomStart,NestedComments);
DebugLn(['TFullyAutomaticBeautifier.FindStackPosForBlockCloseAtPos Atom=',copy(Source,AtomStart,CleanPos-AtomStart)]);
r:=@Source[AtomStart];
case UpChars[r^] of
'C':