From a27b87043f6614614b8a7facd69132daa34fe1ef Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 12 Nov 2005 11:14:50 +0000 Subject: [PATCH] * reset some variables which could be in an illegal state after an error, this is mainly important for the ide git-svn-id: trunk@1726 - --- compiler/parser.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/parser.pas b/compiler/parser.pas index 8d5a6d06fb..3f00113e2a 100644 --- a/compiler/parser.pas +++ b/compiler/parser.pas @@ -395,6 +395,13 @@ implementation oldaktfilepos:=aktfilepos; oldaktmodeswitches:=aktmodeswitches; end; + { reset parser, a previous fatal error could have left these variables in an unreliable state, this is + important for the IDE } + afterassignment:=false; + in_args:=false; + got_addrn:=false; + getprocvardef:=nil; + { show info } Message1(parser_i_compiling,filename);