Mercurial > hg > octave-nkf
diff src/lex.l @ 1273:fd3ed8834b77
[project @ 1995-04-21 03:37:37 by jwe]
author | jwe |
---|---|
date | Fri, 21 Apr 1995 03:37:37 +0000 |
parents | e1ddfb12566d |
children | cbdf7db98554 |
line wrap: on
line diff
--- a/src/lex.l +++ b/src/lex.l @@ -1791,7 +1791,11 @@ if (! in_plot_range) past_plot_range = 1; - int plot_option_kw = is_plot_keyword (tok); + // Option keywords can't appear in parentheses or braces. + + int plot_option_kw = 0; + if (nesting_level.empty ()) + plot_option_kw = is_plot_keyword (tok); if (cant_be_identifier && plot_option_kw) TOK_RETURN (plot_option_kw);