# HG changeset patch # User John Donoghue # Date 1387069693 18000 # Node ID 7af19113ec4346b9ebe363682d3605248cac80eb # Parent 25e87795f437a14408824bf9745d5ac5bd2d3224 Fix block comments for files with CRLF line endings (bug #40894) * libinterp/parse-tree/lex.ll: check for \r when checking for valid block comment diff -r 25e87795f437 -r 7af19113ec43 libinterp/parse-tree/lex.ll --- a/libinterp/parse-tree/lex.ll Wed Dec 11 22:21:06 2013 -0500 +++ b/libinterp/parse-tree/lex.ll Sat Dec 14 20:08:13 2013 -0500 @@ -603,7 +603,7 @@ while (i < len) { char c = yytext[i++]; - if (! (c == ' ' || c == '\t' || c == '\n')) + if (! (c == ' ' || c == '\t' || c == '\n' || c == '\r')) { looks_like_block_comment = false; break;