Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
8311:7124bffc89c7 | 8312:e9d29ff98f30 |
---|---|
438 | 438 |
439 <MATRIX_START>{S}+ { | 439 <MATRIX_START>{S}+ { |
440 current_input_column += yyleng; | 440 current_input_column += yyleng; |
441 | 441 |
442 int tmp = eat_continuation (); | 442 int tmp = eat_continuation (); |
443 int bin_op = next_token_is_bin_op (true); | 443 bool bin_op = next_token_is_bin_op (true); |
444 int postfix_un_op = next_token_is_postfix_unary_op (true); | 444 bool postfix_un_op = next_token_is_postfix_unary_op (true); |
445 | 445 bool sep_op = next_token_is_sep_op (); |
446 if (! (postfix_un_op || bin_op) | 446 |
447 if (! (postfix_un_op || bin_op || sep_op) | |
447 && nesting_level.is_bracket_or_brace () | 448 && nesting_level.is_bracket_or_brace () |
448 && lexer_flags.convert_spaces_to_comma) | 449 && lexer_flags.convert_spaces_to_comma) |
449 { | 450 { |
450 if ((tmp & ATE_NEWLINE) == ATE_NEWLINE) | 451 if ((tmp & ATE_NEWLINE) == ATE_NEWLINE) |
451 { | 452 { |