mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 04:00:25 +02:00
IDE: TProjectFileDescriptor.DefaultResourceName: first try without appending a number, check for pascal keywords
git-svn-id: trunk@37163 -
This commit is contained in:
parent
7ef4bcdbbf
commit
a461fd7b65
@ -5504,7 +5504,7 @@ var
|
||||
i: Integer;
|
||||
begin
|
||||
if IdentifierIsOk(Prefix) then
|
||||
exit(Result);
|
||||
exit(Prefix);
|
||||
while (Prefix<>'') and (Prefix[length(Prefix)] in ['0'..'9']) do
|
||||
System.Delete(Prefix,length(Prefix),1);
|
||||
if (Prefix='') or (not IsValidIdent(Prefix)) then
|
||||
|
Loading…
Reference in New Issue
Block a user