diff src/parse.y @ 4240:8627d992beb8

[project @ 2002-12-25 23:07:03 by jwe]
author jwe
date Wed, 25 Dec 2002 23:07:03 +0000
parents a5a68c0afe56
children 7e4d5b5520e5
line wrap: on
line diff
--- a/src/parse.y	Wed Dec 25 21:47:43 2002 +0000
+++ b/src/parse.y	Wed Dec 25 23:07:03 2002 +0000
@@ -1294,7 +1294,8 @@
 		  }
 		| END_OF_INPUT
 		  {
-		    lexer_flags.parsing_nested_function = false;
+		    if (lexer_flags.parsing_nested_function)
+		      lexer_flags.parsing_nested_function = -1;
 
 		    if (! (reading_fcn_file || reading_script_file
 			   || get_input_from_eval_string))
@@ -2595,6 +2596,9 @@
 
   help_buf.resize (0);
 
+  if (lexer_flags.parsing_nested_function < 0)
+    lexer_flags.parsing_nested_function = 0;
+  
   return fcn;
 }