diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | parse.cxx | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,9 @@ +2006-04-19 Eugene Teo <eteo@redhat.com> + + PR 2014 + * parse.cxx (lexer::scan): Added \[0-7]* case to preserve + octal escape sequences. + 2006-04-18 Martin Hunt <hunt@redhat.com> * Makefile.am (install-data-local): Another try. @@ -553,13 +553,11 @@ lexer::scan () case 'v': case 'f': case 'r': + case '0' ... '7': // NB: need only match the first digit case '\\': // Pass these escapes through to the string value - // beign parsed; it will "likely" be emitted into - // a C literal. - // - // XXX: verify this assumption. + // beign parsed; it will be emitted into a C literal. n->content.push_back('\\'); |