Mercurial > hg > octave-lyh
diff src/lex.ll @ 11367:b2191ebea12f
don't process input_event_hook when we are parsing a function
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 15 Dec 2010 00:44:10 -0500 |
parents | 521373e25613 |
children | 0d9640d755b1 |
line wrap: on
line diff
--- a/src/lex.ll +++ b/src/lex.ll @@ -1580,7 +1580,7 @@ case function_kw: promptflag--; - lexer_flags.defining_func = true; + lexer_flags.defining_func++; lexer_flags.parsed_function_name = false; if (! (reading_fcn_file || reading_script_file @@ -3332,7 +3332,7 @@ looping = 0; // Not initially defining a function. - defining_func = false; + defining_func = 0; parsed_function_name = false; parsing_class_method = false;