diff 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
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Thu Nov 07 12:08:51 2013 -0800
+++ b/libinterp/parse-tree/lex.ll	Thu Nov 07 15:25:34 2013 -0500
@@ -596,7 +596,7 @@
 
     if (full_line_comment)
       {
-        if (yytext[i++] == '{')
+        if (num_comment_chars == 1 && yytext[i++] == '{')
           {
             bool looks_like_block_comment = true;