# HG changeset patch # User John W. Eaton # Date 1377362663 14400 # Node ID f444e4cef9b9079db246349482f517692810f147 # Parent 8cfc28809a07dee62b76a431dddb7bfe014a07ba avoid exiting Octave on parse error (bug #39862) * oct-parse.in.yy (input): Use "parse_error" instead of "simple_list parse_error". diff --git a/libinterp/parse-tree/oct-parse.in.yy b/libinterp/parse-tree/oct-parse.in.yy --- a/libinterp/parse-tree/oct-parse.in.yy +++ b/libinterp/parse-tree/oct-parse.in.yy @@ -318,7 +318,7 @@ parser.stmt_list = $1; YYACCEPT; } - | simple_list parse_error + | parse_error { ABORT_PARSE; } ;