Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
17721:e477578fca3d | 17722:5b0036d89d4a |
---|---|
647 | 647 |
648 curr_lexer->pop_start_state (); | 648 curr_lexer->pop_start_state (); |
649 } | 649 } |
650 | 650 |
651 %{ | 651 %{ |
652 // End of a block of full-line comments. | |
653 %} | |
654 | |
655 <LINE_COMMENT_START><<EOF>> { | |
656 curr_lexer->lexer_debug ("<LINE_COMMENT_START><<EOF>>"); | |
657 | |
658 curr_lexer->finish_comment (octave_comment_elt::full_line); | |
659 | |
660 curr_lexer->pop_start_state (); | |
661 } | |
662 | |
663 %{ | |
652 // Double-quoted character strings. | 664 // Double-quoted character strings. |
653 %} | 665 %} |
654 | 666 |
655 <DQ_STRING_START>\"\" { | 667 <DQ_STRING_START>\"\" { |
656 curr_lexer->lexer_debug ("<DQ_STRING_START>\\\"\\\""); | 668 curr_lexer->lexer_debug ("<DQ_STRING_START>\\\"\\\""); |