# HG changeset patch # User John W. Eaton # Date 1382434415 14400 # Node ID 5b0036d89d4adcc6b37708b49e46c2f10360d72f # Parent e477578fca3dbe610567e1acfde87cfdd985dc7d allow "help dir-name" to work when comment block ends at EOF (bug #40342) * lex.ll (<>): New rule. Handle blocks of line comments that end at EOF. diff -r e477578fca3d -r 5b0036d89d4a libinterp/parse-tree/lex.ll --- 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. +%} + +<> { + curr_lexer->lexer_debug ("<>"); + + curr_lexer->finish_comment (octave_comment_elt::full_line); + + curr_lexer->pop_start_state (); + } + +%{ // Double-quoted character strings. %}