From fda8161be80d189607646c782b979a60d770441f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 5 Aug 2015 08:16:17 -0400 Subject: [PATCH] Lexer: Added missing rollback --- src/Lexer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index 92c6191b8..fad3a9931 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -1084,6 +1084,8 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type) type = Lexer::Type::dom; return true; } + else + _cursor = marker; if (isOneOf ({"context.program", "context.args", @@ -1135,7 +1137,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type) return true; } - // [prefix]attribute + // [prefix]attribute. if (isOneOf (attributes, true, false)) { if (isLiteral (".", false, false))