diff libinterp/parse-tree/lex.ll @ 18247:89e3601c33aa

maint: Periodic merge of gui-release to default.
author John W. Eaton <jwe@octave.org>
date Wed, 08 Jan 2014 01:40:11 -0500
parents 8f256148d82b 043ce3787849
children b60a8a1cda54
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Tue Jan 07 22:09:35 2014 -0500
+++ b/libinterp/parse-tree/lex.ll	Wed Jan 08 01:40:11 2014 -0500
@@ -2622,7 +2622,15 @@
     {
       comment_text = &yytxt[offset];
 
+      // finish_comment sets at_beginning_of_statement to true but
+      // that's not be correct if we are handling a continued
+      // statement.  Preserve the current state.
+
+      bool saved_bos = at_beginning_of_statement;
+
       finish_comment (octave_comment_elt::end_of_line);
+
+      at_beginning_of_statement = saved_bos;
     }
 
   decrement_promptflag ();