mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 23:20:33 +02:00
Jedi Code Format: Do not break line in generic method with "class". Issue #40180, patch by Domingo Galmés.
This commit is contained in:
parent
29f079e7c1
commit
de92d049b6
@ -304,7 +304,11 @@ begin
|
||||
if (pt.TokenType = ttClass) and pt.HasParentNode(ProcedureHeadings) and
|
||||
(not IsGenericFunctionOrProperty(pt)) and
|
||||
(RoundBracketLevel(pt) < 1) then
|
||||
exit(True);
|
||||
begin
|
||||
// 'class' is not a type: procedure DisplayItems<T: class>(TheItems: TEnumerable<T>);
|
||||
if pt.PriorSolidTokenType<>ttColon then
|
||||
exit(True);
|
||||
end;
|
||||
|
||||
{ "uses UnitName in 'File'" has a blank line before UnitName }
|
||||
if IsIdentifier(pt, idStrict) and (pt.HasParentNode(nUses)) and (ptNext.TokenType = ttIn) then
|
||||
|
Loading…
Reference in New Issue
Block a user