codetools: fixed parsing class operator method

git-svn-id: trunk@57648 -
This commit is contained in:
mattias 2018-04-12 19:42:13 +00:00
parent a5293996d9
commit a040f6c847

View File

@ -1347,7 +1347,7 @@ begin
Include(ParseAttr,pphIsOperator); Include(ParseAttr,pphIsOperator);
// read name // read name
ReadNextAtom; ReadNextAtom;
if CurPos.Flag<>cafWord then if (CurPos.Flag<>cafWord) and not (pphIsOperator in ParseAttr) then
AtomIsIdentifierE; AtomIsIdentifierE;
// create node for procedure head // create node for procedure head
CreateChildNode; CreateChildNode;