changeset 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 7aadb87f599a
children 3851e5fde76d
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;