mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 05:17:16 +01:00
Jedi Code Format: Fix indentation of generic function forward declarations. Issue #40055, patch by Domingo Galmés.
This commit is contained in:
parent
be093cd40d
commit
0777a5b939
@ -390,7 +390,16 @@ begin
|
|||||||
}
|
}
|
||||||
else if pt.HasParentNode(nDeclSection) and (not pt.HasParentNode(ProcedureNodes)) then
|
else if pt.HasParentNode(nDeclSection) and (not pt.HasParentNode(ProcedureNodes)) then
|
||||||
begin
|
begin
|
||||||
if pt.TokenType in Declarations + ProcedureWords then
|
// generic procedure/fucntion declarations.
|
||||||
|
if (pt.TokenType=ttGeneric) and (pt.NextSolidTokenType in ProcedureWords) then
|
||||||
|
begin
|
||||||
|
if (pt.NextSolidTokenType in ProcedureWords + ParamTypes) and
|
||||||
|
(pt.HasParentNode(nProcedureType) or pt.HasParentNode(nFormalParams)) then
|
||||||
|
liIndentCount := 1
|
||||||
|
else
|
||||||
|
liIndentCount := 0;
|
||||||
|
end
|
||||||
|
else if pt.TokenType in Declarations + ProcedureWords then
|
||||||
begin
|
begin
|
||||||
{
|
{
|
||||||
the words 'var' and 'const' can be found in proc params
|
the words 'var' and 'const' can be found in proc params
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user