Lexer: Bug in ::isDOM required '.' separators to have endBoundary

This commit is contained in:
Paul Beckingham 2015-07-27 01:52:59 -04:00
parent 99a53edca0
commit c2f08c8f05

View file

@ -1166,7 +1166,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
// [prefix]annotations.
if (isLiteral ("annotations", true, false) &&
isLiteral (".", false, true))
isLiteral (".", false, false))
{
std::string extractedToken;
Lexer::Type extractedType;
@ -1187,7 +1187,7 @@ bool Lexer::isDOM (std::string& token, Lexer::Type& type)
return true;
}
else if (isLiteral ("entry", true, false) &&
isLiteral (".", false, true) &&
isLiteral (".", false, false) &&
isOneOf ({"year", "month", "day",
"week", "weekday",
"julian",