Mercurial > hg > octave-nkf
diff libinterp/parse-tree/lex.ll @ 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 | efbe746f8fa8 |
children | d63878346099 |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -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. %}