Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
11366:ad8966096e27 | 11367:b2191ebea12f |
---|---|
1578 break; | 1578 break; |
1579 | 1579 |
1580 case function_kw: | 1580 case function_kw: |
1581 promptflag--; | 1581 promptflag--; |
1582 | 1582 |
1583 lexer_flags.defining_func = true; | 1583 lexer_flags.defining_func++; |
1584 lexer_flags.parsed_function_name = false; | 1584 lexer_flags.parsed_function_name = false; |
1585 | 1585 |
1586 if (! (reading_fcn_file || reading_script_file | 1586 if (! (reading_fcn_file || reading_script_file |
1587 || reading_classdef_file)) | 1587 || reading_classdef_file)) |
1588 input_line_number = 1; | 1588 input_line_number = 1; |
3330 | 3330 |
3331 // Not initially inside a loop or if statement. | 3331 // Not initially inside a loop or if statement. |
3332 looping = 0; | 3332 looping = 0; |
3333 | 3333 |
3334 // Not initially defining a function. | 3334 // Not initially defining a function. |
3335 defining_func = false; | 3335 defining_func = 0; |
3336 parsed_function_name = false; | 3336 parsed_function_name = false; |
3337 parsing_class_method = false; | 3337 parsing_class_method = false; |
3338 | 3338 |
3339 // Not initially defining a class with classdef. | 3339 // Not initially defining a class with classdef. |
3340 maybe_classdef_get_set_method = false; | 3340 maybe_classdef_get_set_method = false; |