mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 21:59:19 +02:00
Jedi code format: better fix for issue #40871 error handling set definition with ranges.
This commit is contained in:
parent
0fce9ec928
commit
8d91b18a79
@ -1699,10 +1699,8 @@ begin
|
||||
|
||||
Recognise([ttOpenBracket,ttOpenSquareBracket]);
|
||||
|
||||
RecogniseTypedConstant;
|
||||
while (fcTokenList.FirstSolidTokenType = ttComma) do
|
||||
while True do
|
||||
begin
|
||||
Recognise(ttComma);
|
||||
RecogniseTypedConstant;
|
||||
// range x..y
|
||||
if fcTokenList.FirstSolidTokenType = ttDoubleDot then
|
||||
@ -1710,6 +1708,9 @@ begin
|
||||
Recognise(ttDoubleDot);
|
||||
RecogniseTypedConstant;
|
||||
end;
|
||||
if (fcTokenList.FirstSolidTokenType <> ttComma) then
|
||||
break;
|
||||
Recognise(ttComma)
|
||||
end;
|
||||
|
||||
Recognise([ttCloseBracket,ttCloseSquareBracket]);
|
||||
|
Loading…
Reference in New Issue
Block a user