mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 06:58:37 +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])
|
||||
and (Src[CurPos.StartPos] = CloseBracket)
|
||||
then begin
|
||||
// chomp empty brackets
|
||||
ExtractMemStream.Position := ExtractMemStream.Position - 1;
|
||||
// opening bracket was not streamed, keep ExtractMemStream intact.
|
||||
ReadNextAtom;
|
||||
exit(true);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user