Mercurial > octave
changeset 26998:258195ea1a76
Simplify error messages when break or continue statements fail to parse (bug #55995).
* oct-parse.yy (base_parser::make_break_command): Simplify error message for
failed parsing.
* oct-parse.yy (base_parser::make_continue_command): Simplify error message for
failed parsing.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 29 Mar 2019 08:23:16 -0700 |
parents | 4388526646ef |
children | ec0f2f745ea3 |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Fri Mar 29 02:42:37 2019 +0000 +++ b/libinterp/parse-tree/oct-parse.yy Fri Mar 29 08:23:16 2019 -0700 @@ -2979,7 +2979,7 @@ if (! m_lexer.m_looping) { - bison_error ("break must appear in a loop in the same file as loop command"); + bison_error ("break must appear within a loop"); return nullptr; } else @@ -2996,7 +2996,7 @@ if (! m_lexer.m_looping) { - bison_error ("continue must appear in a loop in the same file as loop command"); + bison_error ("continue must appear within a loop"); return nullptr; } else