Mercurial > octave
changeset 28680:e6928695dacb
maint: merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Sep 2020 16:44:37 -0400 |
parents | e44ab1089f61 (current diff) 9117c746de0c (diff) |
children | b245bcfa1736 |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll Thu Sep 03 07:42:52 2020 -0700 +++ b/libinterp/parse-tree/lex.ll Thu Sep 03 16:44:37 2020 -0400 @@ -1704,8 +1704,6 @@ "(" { curr_lexer->lexer_debug ("("); - curr_lexer->update_token_positions (yyleng); - bool unput_comma = false; if (curr_lexer->whitespace_is_significant () @@ -2643,6 +2641,9 @@ int base_lexer::make_keyword_token (const std::string& s) { + // Token positions should have already been updated before this + // function is called. + int slen = s.length (); const octave_kw *kw = octave_kw_hash::in_word_set (s.c_str (), slen); @@ -2655,8 +2656,6 @@ // May be reset to true for some token types. m_at_beginning_of_statement = false; - update_token_positions (slen); - token *tok_val = nullptr; switch (kw->kw_id)