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;
|
||||
if (options.locations) tokEndLoc = new Position;
|
||||
tokType = type;
|
||||
if (shouldSkipSpace !== false && !(inXJSTag && val === '>')) {
|
||||
skipSpace();
|
||||
}
|
||||
if (shouldSkipSpace !== false) skipSpace();
|
||||
tokVal = val;
|
||||
tokRegexpAllowed = type.beforeExpr;
|
||||
if (options.onToken) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user