mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 16:38:17 +02:00
Jedi code format: issue #40294 unnamed enumerator in the variant part of a record.
This commit is contained in:
parent
8783cb734c
commit
12b8417d04
@ -5534,6 +5534,13 @@ begin
|
||||
begin
|
||||
RecognisePossiblyAmpdIdentifier;
|
||||
end
|
||||
{unnamed enumeration in variant record
|
||||
rec1=record
|
||||
case enum:(one, two, three) of
|
||||
one:(F: Integer);
|
||||
}
|
||||
else if lc.TokenType = ttOpenBracket then
|
||||
RecogniseEnumeratedType
|
||||
else
|
||||
begin
|
||||
{ type can be prefixed with a unit name, e.g. Classes.TList;
|
||||
|
Loading…
Reference in New Issue
Block a user