# HG changeset patch # User jwe # Date 1116664312 0 # Node ID 17e40a1331b01d80cb566cac393fb6ba5bce23b2 # Parent cae8081f90f2b85e68f7a0bb46822aa17c67ece7 [project @ 2005-05-21 08:31:52 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-21 John W. Eaton + + * lex.l (handle_string): If single-quote string, \ and . have no + special meaning. + 2005-05-18 John W. Eaton * pt-colon.cc (tree_colon_expression::make_range): Don't require diff --git a/src/lex.l b/src/lex.l --- a/src/lex.l +++ b/src/lex.l @@ -1945,7 +1945,7 @@ if (c == '\\') { - if (escape_pending) + if (delim == '\'' || escape_pending) { buf << static_cast (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 (c); } else if (c == '\n')