mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-25 13:48:19 +02:00
Codetools: Do not chomp a procedure name with empty brackets (). Issue #31960.
git-svn-id: trunk@56015 -
This commit is contained in:
parent
6bca60c00f
commit
04cc3c44b2
@ -1402,8 +1402,7 @@ begin
|
|||||||
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
|
||||||
// chomp empty brackets
|
// opening bracket was not streamed, keep ExtractMemStream intact.
|
||||||
ExtractMemStream.Position := ExtractMemStream.Position - 1;
|
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
exit(true);
|
exit(true);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user