Fixes marijnh/acorn#127.
This commit is contained in:
parent
6ea4139be1
commit
203384f7c2
3
acorn.js
3
acorn.js
@ -2107,7 +2107,7 @@
|
||||
elem.tail = false;
|
||||
next();
|
||||
node.quasis.push(finishNode(elem, "TemplateElement"));
|
||||
if (eat(_bquote)) { // '`', end of template
|
||||
if (tokType === _bquote) { // '`', end of template
|
||||
elem.tail = true;
|
||||
break;
|
||||
}
|
||||
@ -2118,6 +2118,7 @@
|
||||
expect(_braceR);
|
||||
}
|
||||
inTemplate = false;
|
||||
next();
|
||||
return finishNode(node, "TemplateLiteral");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user