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