diff --git a/esprima.js b/esprima.js index 62051f252..f87a283bc 100644 --- a/esprima.js +++ b/esprima.js @@ -5217,8 +5217,8 @@ parseYieldExpression: true } function isXJSIdentifierPart(ch) { - // exclude backslash (\) and add hyphen (-) - return (ch !== 92) && (ch === 45 || isIdentifierPart(ch)); + // exclude backslash (\) and add hyphen (-) and add dot (.) + return (ch !== 92) && (ch === 45 || ch === 46 || isIdentifierPart(ch)); } function scanXJSIdentifier() {