|
@@ -443,7 +443,7 @@ Resourcestring
|
|
|
|
|
|
Function MakeIdentifier (S : String) : String;
|
|
Function MakeIdentifier (S : String) : String;
|
|
Function CreateString(S : String) : String;
|
|
Function CreateString(S : String) : String;
|
|
-Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True);
|
|
|
|
|
|
+Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True; AllowDots : Boolean = False);
|
|
|
|
|
|
implementation
|
|
implementation
|
|
|
|
|
|
@@ -454,10 +454,10 @@ begin
|
|
Result:=''''+Result+'''';
|
|
Result:=''''+Result+'''';
|
|
end;
|
|
end;
|
|
|
|
|
|
-Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True);
|
|
|
|
|
|
+Procedure CheckIdentifier(AValue : String; AllowEmpty : Boolean = True; AllowDots : Boolean = False);
|
|
|
|
|
|
begin
|
|
begin
|
|
- If ((AValue='') and Not AllowEmpty) or Not IsValidIdent(AValue) then
|
|
|
|
|
|
+ If ((AValue='') and Not AllowEmpty) or Not IsValidIdent(AValue,AllowDots) then
|
|
Raise ECodeGenerator.CreateFmt(SErrInvalidIdentifier,[AValue]);
|
|
Raise ECodeGenerator.CreateFmt(SErrInvalidIdentifier,[AValue]);
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1686,7 +1686,7 @@ end;
|
|
procedure TCodeGeneratorOptions.SetUnitname(const AValue: String);
|
|
procedure TCodeGeneratorOptions.SetUnitname(const AValue: String);
|
|
begin
|
|
begin
|
|
if FUnitName=AValue then exit;
|
|
if FUnitName=AValue then exit;
|
|
- CheckIdentifier(AValue,False);
|
|
|
|
|
|
+ CheckIdentifier(AValue,False,True);
|
|
FUnitName:=AValue;
|
|
FUnitName:=AValue;
|
|
end;
|
|
end;
|
|
|
|
|