changeset 17722:5b0036d89d4a

allow "help dir-name" to work when comment block ends at EOF (bug #40342) * lex.ll (<LINE_COMMENT_START><<EOF>>): New rule. Handle blocks of line comments that end at EOF.
author John W. Eaton <jwe@octave.org>
date Tue, 22 Oct 2013 05:33:35 -0400
parents e477578fca3d
children 132d9f543cc5
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Mon Oct 21 22:46:06 2013 -0700
+++ b/libinterp/parse-tree/lex.ll	Tue Oct 22 05:33:35 2013 -0400
@@ -649,6 +649,18 @@
   }
 
 %{
+// End of a block of full-line comments.
+%}
+
+<LINE_COMMENT_START><<EOF>> {
+    curr_lexer->lexer_debug ("<LINE_COMMENT_START><<EOF>>");
+
+    curr_lexer->finish_comment (octave_comment_elt::full_line);
+
+    curr_lexer->pop_start_state ();
+  }
+
+%{
 // Double-quoted character strings.
 %}