Mercurial > hg > octave-avbm
comparison src/lex.l @ 8136:2b2ca62f8ab6
dispatch to user-defined end function for classes if one is defined
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 23 Sep 2008 13:49:14 -0400 |
parents | 85184151822e |
children | e9d29ff98f30 |
comparison
equal
deleted
inserted
replaced
8135:170ff7258b31 | 8136:2b2ca62f8ab6 |
---|---|
1055 case until_kw: | 1055 case until_kw: |
1056 case unwind_protect_cleanup_kw: | 1056 case unwind_protect_cleanup_kw: |
1057 break; | 1057 break; |
1058 | 1058 |
1059 case end_kw: | 1059 case end_kw: |
1060 if (lexer_flags.looking_at_object_index) | 1060 if (lexer_flags.looking_at_object_index |
1061 || (lexer_flags.defining_func | |
1062 && ! (lexer_flags.looking_at_return_list | |
1063 || lexer_flags.parsed_function_name))) | |
1061 return 0; | 1064 return 0; |
1062 else | 1065 else |
1063 { | 1066 { |
1064 if (reading_fcn_file && end_tokens_expected == 1) | 1067 if (reading_fcn_file && end_tokens_expected == 1) |
1065 return -1; | 1068 return -1; |