mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 01:59:53 +02:00
codetools: auto indent: unindent using next atom
git-svn-id: trunk@22344 -
This commit is contained in:
parent
b66ad68b18
commit
653c1f4acf
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user