From 4ed5087bea4da1ce90fa31aeb0fc3ef99a4d3704 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 10 Jul 2014 18:29:44 +0300 Subject: [PATCH] Revert space counting after the opening tag in favor of better fix since this one introduces extra parsing error. Conflicts: acorn.js --- acorn.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/acorn.js b/acorn.js index 54f2867542..c8c6cc95ba 100644 --- a/acorn.js +++ b/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) {