regjsparser
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "regjsparser", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "'Julian Viereck' <julian.viereck@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "BSD-2-Clause", |
@@ -944,7 +944,19 @@ // regjsparser | ||
// IdentityEscape :: | ||
// SourceCharacter but not c | ||
// [+U] SyntaxCharacter | ||
// [+U] / | ||
// [~U] SourceCharacterIdentityEscape[?N] | ||
// SourceCharacterIdentityEscape[?N] :: | ||
// [~N] SourceCharacter but not c | ||
// [+N] SourceCharacter but not one of c or k | ||
var tmp; | ||
if (lookahead() !== 'c') { | ||
var l = lookahead(); | ||
if ( | ||
(hasUnicodeFlag && /[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(l)) || | ||
(!hasUnicodeFlag && l !== "c") | ||
) { | ||
if (l === "k" && features.lookbehind) { | ||
return null; | ||
} | ||
tmp = incr(); | ||
@@ -951,0 +963,0 @@ return createEscaped('identifier', tmp.charCodeAt(0), tmp, 1); |
48846
1090