Mercurial > octave-dspies
diff src/lex.l @ 8312:e9d29ff98f30
lex.l (<MATRIX_START>{S}+): Don't insert separator if next token is a separator.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 11 Nov 2008 14:34:37 -0500 |
parents | 2b2ca62f8ab6 |
children | adab48231a03 |
line wrap: on
line diff
--- a/src/lex.l Tue Nov 11 14:34:02 2008 -0500 +++ b/src/lex.l Tue Nov 11 14:34:37 2008 -0500 @@ -440,10 +440,11 @@ current_input_column += yyleng; int tmp = eat_continuation (); - int bin_op = next_token_is_bin_op (true); - int postfix_un_op = next_token_is_postfix_unary_op (true); - - if (! (postfix_un_op || bin_op) + bool bin_op = next_token_is_bin_op (true); + bool postfix_un_op = next_token_is_postfix_unary_op (true); + bool sep_op = next_token_is_sep_op (); + + if (! (postfix_un_op || bin_op || sep_op) && nesting_level.is_bracket_or_brace () && lexer_flags.convert_spaces_to_comma) {