diff 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
line wrap: on
line diff
--- a/test/parser.tst	Tue Jan 07 22:06:37 2014 -0500
+++ b/test/parser.tst	Wed Jan 08 01:26:49 2014 -0500
@@ -283,3 +283,7 @@
 %! xyz(1) = 1; xyz /= 1;
 %! assert (xyz, 1);
 
+%!test
+%! a = [97 ... % comment
+%!      'b'];
+%! assert (a, 'ab');