Explorar o código

* 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 -
florian %!s(int64=20) %!d(string=hai) anos
pai
achega
a27b87043f
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      compiler/parser.pas

+ 7 - 0
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);