mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 15:56:10 +02:00
Codetools: Class completion now ignores empty parenthesis. Issue #19668, patch from Anton
git-svn-id: trunk@31960 -
This commit is contained in:
parent
9ccda3b3ec
commit
a3b74ddd78
@ -1214,8 +1214,16 @@ begin
|
||||
end;
|
||||
if not Extract then
|
||||
ReadNextAtom
|
||||
else
|
||||
else begin
|
||||
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
||||
if (CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose])
|
||||
and (Src[CurPos.StartPos] = CloseBracket)
|
||||
then begin // skip parenthesis
|
||||
ExtractMemStream.Position := ExtractMemStream.Position - 1;
|
||||
ReadNextAtom;
|
||||
Exit(True);
|
||||
end;
|
||||
end;
|
||||
end else
|
||||
CloseBracket:=#0;
|
||||
if not (CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose]) then begin
|
||||
|
Loading…
Reference in New Issue
Block a user