summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-04-20 11:52:54 +0000
committerfche <fche>2006-04-20 11:52:54 +0000
commitf03954fd68928b266400e0d36e60ad83c3335535 (patch)
treec500a712b69e9786f2f9b99c87a83d851b9ac91d /parse.cxx
parentcec2f7b0ea2b24098d36d0d31495b0f024cf5d19 (diff)
downloadsystemtap-steved-f03954fd68928b266400e0d36e60ad83c3335535.tar.gz
systemtap-steved-f03954fd68928b266400e0d36e60ad83c3335535.tar.xz
systemtap-steved-f03954fd68928b266400e0d36e60ad83c3335535.zip
2006-04-19 Eugene Teo <eteo@redhat.com>
PR 2014 * parse.cxx (lexer::scan): Added \[0-7]* case to preserve octal escape sequences.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/parse.cxx b/parse.cxx
index f7ea157b..30c59b45 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -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('\\');