mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 09:39:16 +02:00
codetools: fixed two tests
This commit is contained in:
parent
992a3c2ff5
commit
9d18e66aa8
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user