comparison libinterp/parse-tree/lex.ll @ 17882:cf3f828f401c

only allow [%#]{ as block comment start (bug #40513) * lex.ll (<LINE_COMMENT_START>{S}*{CCHAR}.*{NL}): Don't allow multiple comment characters prior to { to signal the start of a block comment.
author John W. Eaton <jwe@octave.org>
date Thu, 07 Nov 2013 15:25:34 -0500
parents 870f3e12e163
children 6762a6d23010 d48ef9e24324 7af19113ec43
comparison
equal deleted inserted replaced
17881:7aadb87f599a 17882:cf3f828f401c
594 594
595 curr_lexer->comment_text += &yytext[i]; 595 curr_lexer->comment_text += &yytext[i];
596 596
597 if (full_line_comment) 597 if (full_line_comment)
598 { 598 {
599 if (yytext[i++] == '{') 599 if (num_comment_chars == 1 && yytext[i++] == '{')
600 { 600 {
601 bool looks_like_block_comment = true; 601 bool looks_like_block_comment = true;
602 602
603 while (i < len) 603 while (i < len)
604 { 604 {