mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
IDE: rename component: check for predefined identifiers, bug #18167
git-svn-id: trunk@28658 -
This commit is contained in:
parent
315108e0c1
commit
78fb13e2de
@ -15774,7 +15774,10 @@ begin
|
||||
raise Exception.Create(Format(lisComponentNameIsNotAValidIdentifier, ['"',
|
||||
Newname, '"']));
|
||||
if WordIsKeyWord.DoItCaseInsensitive(PChar(NewName))
|
||||
or WordIsDelphiKeyWord.DoItCaseInsensitive(PChar(NewName)) then begin
|
||||
or WordIsDelphiKeyWord.DoItCaseInsensitive(PChar(NewName))
|
||||
or WordIsPredefinedFPCIdentifier.DoItCaseInsensitive(PChar(NewName))
|
||||
or WordIsPredefinedDelphiIdentifier.DoItCaseInsensitive(PChar(NewName))
|
||||
then begin
|
||||
raise Exception.Create(Format(lisComponentNameIsAPascalKeyword, [NewName]));
|
||||
end;
|
||||
if AComponent.Name='' then begin
|
||||
|
Loading…
Reference in New Issue
Block a user