codetools: fixed two tests

This commit is contained in:
mattias 2023-07-15 11:04:18 +02:00
parent 992a3c2ff5
commit 9d18e66aa8
2 changed files with 8 additions and 6 deletions

View File

@ -305,7 +305,7 @@ begin
,' end;' ,' end;'
,'implementation' ,'implementation'
,'end.'], ,'end.'],
['Button1:Dsgn_AmbigBearBtn.TBearButton'] ['Button1:Dsgn_AmbigBearBtn/TBearButton']
); );
end; end;
@ -325,9 +325,9 @@ begin
,' end;' ,' end;'
,'implementation' ,'implementation'
,'end.'], ,'end.'],
['Button1:Dsgn_AmbigBearBtn.TBearButton', ['Button1:Dsgn_AmbigBearBtn/TBearButton',
'Button2:Dsgn_BearButtons.TBearButton', 'Button2:Dsgn_BearButtons/TBearButton',
'Label1:Dsgn_BearControls.TBearLabel'] 'Label1:Dsgn_BearControls/TBearLabel']
); );
end; end;

View File

@ -324,8 +324,10 @@ begin
while (IdentifierEndPos>1) and (IsSpaceChar[Src[IdentifierEndPos-1]]) do while (IdentifierEndPos>1) and (IsSpaceChar[Src[IdentifierEndPos-1]]) do
dec(IdentifierEndPos); dec(IdentifierEndPos);
IdentifierStartPos:=IdentifierEndPos; IdentifierStartPos:=IdentifierEndPos;
// allow after . (for completion) if (IdentifierStartPos>1) and (Src[IdentifierStartPos-1]='.') then begin
if not ((IdentifierStartPos>1) and (Src[IdentifierStartPos-1]='.')) then begin // .{...} for completion
end else begin
// check identifier in front of comment
while (IdentifierStartPos>1) and (IsIdentChar[Src[IdentifierStartPos-1]]) do while (IdentifierStartPos>1) and (IsIdentChar[Src[IdentifierStartPos-1]]) do
dec(IdentifierStartPos); dec(IdentifierStartPos);
if IdentifierStartPos=p then begin if IdentifierStartPos=p then begin