summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
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('\\');