mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:29:25 +02:00
Fix bug ID #35086: TParser should reset position (tentative)
git-svn-id: trunk@41331 -
This commit is contained in:
parent
a750039f7c
commit
4143ecf6c0
@ -361,8 +361,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TParser.Destroy;
|
destructor TParser.Destroy;
|
||||||
|
|
||||||
|
Var
|
||||||
|
aCount : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
fStream.Position:=SourcePos;
|
if fToken=toWString then
|
||||||
|
aCount:=Length(fLastTokenWStr)*2
|
||||||
|
else
|
||||||
|
aCount:=Length(fLastTokenStr);
|
||||||
|
fStream.Position:=SourcePos-aCount;
|
||||||
FreeMem(fBuf);
|
FreeMem(fBuf);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user