Lexer: Bug in ::isDOM required '.' separators to have endBoundary
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user