Mercurial > octave-nkf
changeset 18134:7af19113ec43 stable
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
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 14 Dec 2013 20:08:13 -0500 |
parents | 25e87795f437 |
children | 285b2dc3ddfa |
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 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;