Mercurial > octave-nkf
comparison libinterp/parse-tree/lex.ll @ 19319: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 | c59745865c7f |
children | 86f50893acd8 c1ce43276b86 |
comparison
equal
deleted
inserted
replaced
19290:ce9bd5ed44d2 | 19319:a3eead909bf9 |
---|---|
165 \ | 165 \ |
166 do \ | 166 do \ |
167 { \ | 167 { \ |
168 curr_lexer->lexer_debug (PATTERN); \ | 168 curr_lexer->lexer_debug (PATTERN); \ |
169 \ | 169 \ |
170 if (curr_lexer->previous_token_may_be_command ()) \ | 170 if (curr_lexer->previous_token_may_be_command () \ |
171 && curr_lexer->space_follows_previous_token ()) \ | |
171 { \ | 172 { \ |
172 yyless (0); \ | 173 yyless (0); \ |
173 curr_lexer->push_start_state (COMMAND_START); \ | 174 curr_lexer->push_start_state (COMMAND_START); \ |
174 } \ | 175 } \ |
175 else \ | 176 else \ |