mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 17:39:16 +02:00
Jedi code format: fix issue #40871 error handling a set with ranges, based on a patch from bytebites
This commit is contained in:
parent
1ed2cf467c
commit
a326522d93
@ -1704,6 +1704,12 @@ begin
|
|||||||
begin
|
begin
|
||||||
Recognise(ttComma);
|
Recognise(ttComma);
|
||||||
RecogniseTypedConstant;
|
RecogniseTypedConstant;
|
||||||
|
// range x..y
|
||||||
|
if fcTokenList.FirstSolidTokenType = ttDoubleDot then
|
||||||
|
begin
|
||||||
|
Recognise(ttDoubleDot);
|
||||||
|
RecogniseTypedConstant;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Recognise([ttCloseBracket,ttCloseSquareBracket]);
|
Recognise([ttCloseBracket,ttCloseSquareBracket]);
|
||||||
|
Loading…
Reference in New Issue
Block a user