Mercurial > hg > octave-nkf
changeset 19477:a3eead909bf9 gui-release
fix error with command parsing (bug #43470)
* lex.ll (CMD_OR_COMPUTED_ASSIGN_OP): To recognize command syntax,
require space following the token that may be a command.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 Oct 2014 13:36:01 -0400 |
parents | ce9bd5ed44d2 |
children | 0e077a29854f |
files | libinterp/parse-tree/lex.ll |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -167,7 +167,8 @@ { \ curr_lexer->lexer_debug (PATTERN); \ \ - if (curr_lexer->previous_token_may_be_command ()) \ + if (curr_lexer->previous_token_may_be_command () \ + && curr_lexer->space_follows_previous_token ()) \ { \ yyless (0); \ curr_lexer->push_start_state (COMMAND_START); \