diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-02-20 11:27:01 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2013-02-20 11:27:01 +0100 |
commit | 43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e (patch) | |
tree | 323d58af49c7aa0ba012a3ea1bb488169174e5c8 /Visitor | |
parent | 828df3699a17085da4882c764df663ce773cc25a (diff) | |
download | Praspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.zip Praspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.tar.gz Praspel-43f4ab7d0e7e17fb35ef9b64172fda1d73ef457e.tar.bz2 |
Add the “accepted” token.
It helps to recognize an invalid escape character, such as: Foo\Bar\Baz,
which is equivalent to Foo\\Bar\\Baz.
Diffstat (limited to 'Visitor')
-rw-r--r-- | Visitor/Interpreter.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Visitor/Interpreter.php b/Visitor/Interpreter.php index ee8a594..dea8279 100644 --- a/Visitor/Interpreter.php +++ b/Visitor/Interpreter.php @@ -462,6 +462,7 @@ class Interpreter implements \Hoa\Visitor\Visit { return \Hoa\String::fromCode(octdec($value)); } + case 'accepted': case 'string': return $value; |