mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:59:14 +02:00
Codetools: Allow keyword const in generic parameter list. Issue #38087.
(cherry picked from commit 6f8172a61a
)
This commit is contained in:
parent
6bc2584107
commit
1741abd120
@ -4237,6 +4237,8 @@ begin
|
|||||||
CurNode.Desc:=ctnGenericParams;
|
CurNode.Desc:=ctnGenericParams;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
//debugln(['TPascalParserTool.ReadGenericParamList START ctnGenericParams ',GetAtom]);
|
//debugln(['TPascalParserTool.ReadGenericParamList START ctnGenericParams ',GetAtom]);
|
||||||
|
if UpAtomIs('CONST') then // read const after <
|
||||||
|
ReadNextAtom;
|
||||||
if AtomIsIdentifier then begin
|
if AtomIsIdentifier then begin
|
||||||
CreateChildNode;
|
CreateChildNode;
|
||||||
CurNode.Desc:=ctnGenericParameter;
|
CurNode.Desc:=ctnGenericParameter;
|
||||||
@ -4253,6 +4255,8 @@ begin
|
|||||||
// read next name
|
// read next name
|
||||||
EndChildNode;
|
EndChildNode;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
|
if UpAtomIs('CONST') then // read const after , or ;
|
||||||
|
ReadNextAtom;
|
||||||
AtomIsIdentifierSaveE(20180411194201);
|
AtomIsIdentifierSaveE(20180411194201);
|
||||||
CreateChildNode;
|
CreateChildNode;
|
||||||
CurNode.Desc:=ctnGenericParameter;
|
CurNode.Desc:=ctnGenericParameter;
|
||||||
|
Loading…
Reference in New Issue
Block a user