Mercurial > octave
changeset 27512:549273db93e4
cache current input line in push lexer
* lex.ll (push_lexer::append_input): Set m_current_input_line to input.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Oct 2019 12:29:18 -0400 |
parents | 257105b5193a |
children | 28ed77ca1e4a |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Fri Oct 11 11:42:09 2019 -0400 +++ b/libinterp/parse-tree/lex.ll Fri Oct 11 12:29:18 2019 -0400 @@ -3756,8 +3756,13 @@ // buffer one line at a time, while also setting // m_current_input_line. Some care will be needed if a single line // of input arrives in multiple calls to append_input. + // + // OR, should we require that the input string to append_input + // IS a single line of input? That seems to be what we are doing + // here by setting m_current_input_line to input. m_input_buf.fill (input, eof); + m_current_input_line = input; } int