codetools: allow keywords in program name

git-svn-id: trunk@37483 -
This commit is contained in:
mattias 2012-06-02 13:52:58 +00:00
parent 24dcd68f83
commit ee85c477b2

View File

@ -634,7 +634,10 @@ begin
if HasSourceType then begin
repeat
ReadNextAtom; // read source name
AtomIsIdentifierSaveE;
// program and library can use keywords
if (CurPos.Flag<>cafWord)
or (CurSection in [ctnUnit,ctnPackage]) then
AtomIsIdentifierSaveE;
ReadNextAtom; // read ';' (or 'platform;' or 'unimplemented;')
until CurPos.Flag<>cafPoint;
end;