Codetools: Do not chomp a procedure name with empty brackets (). Issue #31960.

git-svn-id: trunk@56015 -
This commit is contained in:
juha 2017-10-10 09:44:07 +00:00
parent 6bca60c00f
commit 04cc3c44b2

View File

@ -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;