aboutsummaryrefslogtreecommitdiffstats
path: root/Visitor/Interpreter.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-05-21 15:24:39 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-05-21 15:24:39 +0200
commitee493642a9d7061550e2b14ac714c2cc9d3ef1a9 (patch)
treeec55f44083117044ea45d96b85c2d08b077d1175 /Visitor/Interpreter.php
parent3f019dd711477be78bcdc6718d1aab890ca9bb12 (diff)
downloadPraspel-ee493642a9d7061550e2b14ac714c2cc9d3ef1a9.zip
Praspel-ee493642a9d7061550e2b14ac714c2cc9d3ef1a9.tar.gz
Praspel-ee493642a9d7061550e2b14ac714c2cc9d3ef1a9.tar.bz2
Allow to escape slash.
Diffstat (limited to 'Visitor/Interpreter.php')
-rw-r--r--Visitor/Interpreter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php
index 0a5c234..da62297 100644
--- a/Visitor/Interpreter.php
+++ b/Visitor/Interpreter.php
@@ -572,6 +572,9 @@ class Interpreter implements \Hoa\Visitor\Visit {
case 'x':
return \Hoa\String::fromCode(hexdec($value));
+ case '\\':
+ return $value[1];
+
default:
return \Hoa\String::fromCode(octdec($value));
}