comparison test/parser.tst @ 18245:1f072ae35ede stable

fix parsing of single quote after continuation and comment (bug #41048) * lex.ll (octave_base_lexer::handle_continuation): Preserve state of at_beginning_of_statement across call to finish_comment. * parser.tst: New test.
author John W. Eaton <jwe@octave.org>
date Wed, 08 Jan 2014 01:26:49 -0500
parents d63878346099
children e4c319ed2414
comparison
equal deleted inserted replaced
18242:36057e2411f8 18245:1f072ae35ede
281 ## intended. 281 ## intended.
282 %!test 282 %!test
283 %! xyz(1) = 1; xyz /= 1; 283 %! xyz(1) = 1; xyz /= 1;
284 %! assert (xyz, 1); 284 %! assert (xyz, 1);
285 285
286 %!test
287 %! a = [97 ... % comment
288 %! 'b'];
289 %! assert (a, 'ab');