From d7f59180ce59ca359a0bc3f0bb4d24217f36e902 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 26 Jul 2015 21:56:28 +0100 Subject: [PATCH] add back missing comment fix - fixes #2072 --- packages/babylon/src/parser/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babylon/src/parser/comments.js b/packages/babylon/src/parser/comments.js index 65de15b5c6..9c5d58070f 100644 --- a/packages/babylon/src/parser/comments.js +++ b/packages/babylon/src/parser/comments.js @@ -74,7 +74,7 @@ pp.processComment = function (node) { if (lastChild) { if (lastChild.leadingComments) { - if (last(lastChild.leadingComments).end <= node.start) { + if (last(lastChild.leadingComments).end < node.start) { node.leadingComments = lastChild.leadingComments; lastChild.leadingComments = null; } else {