codetools: parse external class const

git-svn-id: trunk@57954 -
This commit is contained in:
mattias 2018-05-18 08:04:31 +00:00
parent 167c4c911d
commit d36c84686d
2 changed files with 6 additions and 2 deletions

View File

@ -1664,8 +1664,8 @@ begin
NewItem.IdentifierStartInUnitName := 1;
{$IFDEF VerboseICGatherUnitNames}
//debugln(['TIdentCompletionTool.GatherUnitnames Add ',UnitFileInfo.FileUnitName,' NewCount=',CurrentIdentifierList]);
CurrentIdentifierList.Add(NewItem);
{$ENDIF}
CurrentIdentifierList.Add(NewItem);
end;
end;
if FIDTTreeOfNamespaces<>nil then

View File

@ -4030,7 +4030,11 @@ begin
end;
end else begin
UndoReadNextAtom;
SaveRaiseCharExpectedButAtomFound(20180507200240,'=');
if (CurNode.Parent.Desc=ctnConstSection)
and (CurNode.Parent.Parent.Desc in AllClassBaseSections) then
// ok
else
SaveRaiseCharExpectedButAtomFound(20180507200240,'=');
end;
end else
ReadConstExpr;