mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-03 22:40:30 +02:00
Merged revision(s) 56085 #e69881ff9d from trunk:
Codetools: Fix code completion for methods with empty parentheses. Issue #31960. ........ git-svn-id: branches/fixes_1_8@56090 -
This commit is contained in:
parent
682a2912bd
commit
ee2f30dec1
@ -1401,9 +1401,8 @@ begin
|
|||||||
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
||||||
if (CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose])
|
if (CurPos.Flag in [cafRoundBracketClose,cafEdgedBracketClose])
|
||||||
and (Src[CurPos.StartPos] = CloseBracket)
|
and (Src[CurPos.StartPos] = CloseBracket)
|
||||||
then begin
|
then begin // empty brackets: extract also the closing bracket.
|
||||||
// opening bracket was not streamed, keep ExtractMemStream intact.
|
ExtractNextAtom(not (phpWithoutBrackets in Attr),Attr);
|
||||||
ReadNextAtom;
|
|
||||||
exit(true);
|
exit(true);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user