Revert space counting after the opening tag in favor of better fix since this one introduces extra parsing error.
Conflicts: acorn.js
This commit is contained in:
parent
77e05c4edc
commit
4ed5087bea
4
acorn.js
4
acorn.js
@ -544,9 +544,7 @@
|
|||||||
tokEnd = tokPos;
|
tokEnd = tokPos;
|
||||||
if (options.locations) tokEndLoc = new Position;
|
if (options.locations) tokEndLoc = new Position;
|
||||||
tokType = type;
|
tokType = type;
|
||||||
if (shouldSkipSpace !== false && !(inXJSTag && val === '>')) {
|
if (shouldSkipSpace !== false) skipSpace();
|
||||||
skipSpace();
|
|
||||||
}
|
|
||||||
tokVal = val;
|
tokVal = val;
|
||||||
tokRegexpAllowed = type.beforeExpr;
|
tokRegexpAllowed = type.beforeExpr;
|
||||||
if (options.onToken) {
|
if (options.onToken) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user