Mercurial > hg > octave-nkf
changeset 5359:17e40a1331b0
[project @ 2005-05-21 08:31:52 by jwe]
author | jwe |
---|---|
date | Sat, 21 May 2005 08:31:52 +0000 |
parents | cae8081f90f2 |
children | 33adb987c033 |
files | src/ChangeLog src/lex.l |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-21 John W. Eaton <jwe@octave.org> + + * lex.l (handle_string): If single-quote string, \ and . have no + special meaning. + 2005-05-18 John W. Eaton <jwe@octave.org> * pt-colon.cc (tree_colon_expression::make_range): Don't require
--- a/src/lex.l +++ b/src/lex.l @@ -1945,7 +1945,7 @@ if (c == '\\') { - if (escape_pending) + if (delim == '\'' || escape_pending) { buf << static_cast<char> (c); escape_pending = 0; @@ -1964,7 +1964,7 @@ } else if (c == '.') { - if (! have_ellipsis_continuation (false)) + if (delim == '\'' || ! have_ellipsis_continuation (false)) buf << static_cast<char> (c); } else if (c == '\n')