mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:22:30 +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]);
|
Recognise([ttOpenBracket,ttOpenSquareBracket]);
|
||||||
|
|
||||||
RecogniseTypedConstant;
|
while True do
|
||||||
while (fcTokenList.FirstSolidTokenType = ttComma) do
|
|
||||||
begin
|
begin
|
||||||
Recognise(ttComma);
|
|
||||||
RecogniseTypedConstant;
|
RecogniseTypedConstant;
|
||||||
// range x..y
|
// range x..y
|
||||||
if fcTokenList.FirstSolidTokenType = ttDoubleDot then
|
if fcTokenList.FirstSolidTokenType = ttDoubleDot then
|
||||||
@ -1710,6 +1708,9 @@ begin
|
|||||||
Recognise(ttDoubleDot);
|
Recognise(ttDoubleDot);
|
||||||
RecogniseTypedConstant;
|
RecogniseTypedConstant;
|
||||||
end;
|
end;
|
||||||
|
if (fcTokenList.FirstSolidTokenType <> ttComma) then
|
||||||
|
break;
|
||||||
|
Recognise(ttComma)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Recognise([ttCloseBracket,ttCloseSquareBracket]);
|
Recognise([ttCloseBracket,ttCloseSquareBracket]);
|
||||||
|
Loading…
Reference in New Issue
Block a user