From 8392b19d9b2afa183d5498caae6392b90ab63413 Mon Sep 17 00:00:00 2001 From: Kyle Davis Date: Tue, 18 Aug 2015 17:56:35 -0700 Subject: [PATCH] handle closing jsx tags --- lib/acorn-modified.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/acorn-modified.js b/lib/acorn-modified.js index c57c197..0672fc6 100644 --- a/lib/acorn-modified.js +++ b/lib/acorn-modified.js @@ -662,6 +662,10 @@ skipSpace(); return readToken(); } + if (next == 47 && code == 60) { + tokPos += 2; + return readToken(); + } if (next === 61) size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2; return finishOp(_relational, size);