mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 21:38:00 +02:00
Jedi code format: fix bug formatting const arrays. Issue #41152
This commit is contained in:
parent
f5e83fae47
commit
708f754935
@ -1596,11 +1596,13 @@ begin
|
||||
liBracketLevel := 0;
|
||||
liMaxBracketLevel := 0;
|
||||
liIndex := fcTokenList.CurrentTokenIndex;
|
||||
// scan past the open bracket
|
||||
while not (fcTokenList.SourceTokens[liIndex].TokenType in [ttOpenBracket,ttOpenSquareBracket]) do
|
||||
// scan past the open brackets
|
||||
while fcTokenList.SourceTokens[liIndex].TokenType in [ttOpenBracket,ttOpenSquareBracket] do
|
||||
begin
|
||||
Inc(liIndex);
|
||||
Inc(liBracketLevel);
|
||||
Inc(liMaxBracketLevel);
|
||||
Inc(liBracketLevel);
|
||||
Inc(liMaxBracketLevel);
|
||||
end;
|
||||
Inc(liIndex);
|
||||
|
||||
// look forward to find the first comma or semicolon
|
||||
|
Loading…
Reference in New Issue
Block a user