diff --git a/libinterp/parse-tree/lex.ll b/libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -771,6 +771,7 @@ ANY_INCLUDING_NL (.|{NL}) if (looks_like_block_comment) { yyless (0); + curr_lexer->m_input_line_number--; curr_lexer->finish_comment (octave::comment_elt::full_line);