mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 05:19:14 +02:00
codetools: autoindenter: pasting var section after sub proc
git-svn-id: trunk@26485 -
This commit is contained in:
parent
a09d8339a6
commit
379d004c13
@ -1452,8 +1452,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
'C':
|
'C':
|
||||||
if CompareIdentifiers('CONST',r)=0 then
|
if CompareIdentifiers('CONST',r)=0 then begin
|
||||||
EndIdentifierSectionAndProc;
|
EndIdentifierSectionAndProc;
|
||||||
|
if StackTopType=bbtProcedure then
|
||||||
|
BeginBlock(bbtLabelSection);
|
||||||
|
end;
|
||||||
'E':
|
'E':
|
||||||
case UpChars[r[1]] of
|
case UpChars[r[1]] of
|
||||||
'L': // EL
|
'L': // EL
|
||||||
@ -1549,8 +1552,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
'L':
|
'L':
|
||||||
if CompareIdentifiers('LABEL',r)=0 then
|
if CompareIdentifiers('LABEL',r)=0 then begin
|
||||||
EndIdentifierSectionAndProc;
|
EndIdentifierSectionAndProc;
|
||||||
|
if StackTopType=bbtProcedure then
|
||||||
|
BeginBlock(bbtLabelSection);
|
||||||
|
end;
|
||||||
'P':
|
'P':
|
||||||
case UpChars[r[1]] of
|
case UpChars[r[1]] of
|
||||||
'R': // PR
|
'R': // PR
|
||||||
@ -1588,8 +1594,11 @@ begin
|
|||||||
'T':
|
'T':
|
||||||
case UpChars[r[1]] of
|
case UpChars[r[1]] of
|
||||||
'Y': // TY
|
'Y': // TY
|
||||||
if CompareIdentifiers('TYPE',r)=0 then
|
if CompareIdentifiers('TYPE',r)=0 then begin
|
||||||
EndIdentifierSectionAndProc;
|
EndIdentifierSectionAndProc;
|
||||||
|
if StackTopType=bbtProcedure then
|
||||||
|
BeginBlock(bbtTypeSection);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
'U':
|
'U':
|
||||||
case UpChars[r[1]] of
|
case UpChars[r[1]] of
|
||||||
@ -1599,8 +1608,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
'V':
|
'V':
|
||||||
if CompareIdentifiers('VAR',r)=0 then
|
if CompareIdentifiers('VAR',r)=0 then begin
|
||||||
EndIdentifierSectionAndProc;
|
EndIdentifierSectionAndProc;
|
||||||
|
if StackTopType=bbtProcedure then
|
||||||
|
BeginBlock(bbtVarSection);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
{$IFDEF VerboseIndenter}
|
{$IFDEF VerboseIndenter}
|
||||||
if (Stack.Top<>Result) then
|
if (Stack.Top<>Result) then
|
||||||
|
Loading…
Reference in New Issue
Block a user