mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 10:50:53 +02:00
Merge branch 'PeaZomboss-main-patch-59092' into 'main'
Codetools: Allow keyword const in generic parameter list. Issue #38087. See merge request freepascal.org/lazarus/lazarus!58
This commit is contained in:
commit
4b4b6acc20
@ -4237,6 +4237,8 @@ begin
|
||||
CurNode.Desc:=ctnGenericParams;
|
||||
ReadNextAtom;
|
||||
//debugln(['TPascalParserTool.ReadGenericParamList START ctnGenericParams ',GetAtom]);
|
||||
if UpAtomIs('CONST') then // read const after <
|
||||
ReadNextAtom;
|
||||
if AtomIsIdentifier then begin
|
||||
CreateChildNode;
|
||||
CurNode.Desc:=ctnGenericParameter;
|
||||
@ -4253,6 +4255,8 @@ begin
|
||||
// read next name
|
||||
EndChildNode;
|
||||
ReadNextAtom;
|
||||
if UpAtomIs('CONST') then // read const after , or ;
|
||||
ReadNextAtom;
|
||||
AtomIsIdentifierSaveE(20180411194201);
|
||||
CreateChildNode;
|
||||
CurNode.Desc:=ctnGenericParameter;
|
||||
|
Loading…
Reference in New Issue
Block a user