Mercurial > octave-nkf
diff scripts/plot/util/close.m @ 18223:615fdd2238c1 gui-release
improve compatibility of command syntax parsing (bug #41032)
* lex.h, lex.ll (lexical_feedback::command_arg_paren_count):
New data member.
(lexical_feedback::lexical_feedback): Initialize it.
(lexical_feedback::reset): Reset it.
(COMMAND_ARG_FINISH): New macro.
Rewrite COMMAND_START patterns to improve Matlab compatibility of
command syntax parsing.
(<DQ_STRING_START>\", <SQ_STRING_START>\'): Don't return token if
start state is COMMAND_START.
* close.m: Fix test.
author | Michael C. Grant <mcg@cvxr.com> |
---|---|
date | Mon, 06 Jan 2014 12:02:04 -0500 |
parents | d63878346099 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/scripts/plot/util/close.m Sun Jan 05 17:43:18 2014 -0600 +++ b/scripts/plot/util/close.m Mon Jan 06 12:02:04 2014 -0500 @@ -105,5 +105,4 @@ %!error <first argument must be "all" or a figure> close ({"all"}) %!error <first argument must be "all" or a figure> close ("all_and_more") %!error <first argument must be "all" or a figure> close (-1) -%!error <expecting argument to be "all hidden"> close "all" hid" - +%!error <expecting argument to be "all hidden"> close all hid