mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:59:08 +02:00
codetools: allow keywords in program name
git-svn-id: trunk@37483 -
This commit is contained in:
parent
24dcd68f83
commit
ee85c477b2
@ -634,6 +634,9 @@ begin
|
|||||||
if HasSourceType then begin
|
if HasSourceType then begin
|
||||||
repeat
|
repeat
|
||||||
ReadNextAtom; // read source name
|
ReadNextAtom; // read source name
|
||||||
|
// program and library can use keywords
|
||||||
|
if (CurPos.Flag<>cafWord)
|
||||||
|
or (CurSection in [ctnUnit,ctnPackage]) then
|
||||||
AtomIsIdentifierSaveE;
|
AtomIsIdentifierSaveE;
|
||||||
ReadNextAtom; // read ';' (or 'platform;' or 'unimplemented;')
|
ReadNextAtom; // read ';' (or 'platform;' or 'unimplemented;')
|
||||||
until CurPos.Flag<>cafPoint;
|
until CurPos.Flag<>cafPoint;
|
||||||
|
Loading…
Reference in New Issue
Block a user