From 1344d9a18adb0f0efcfe7aafa99bb69efaa4f501 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Wed, 2 Dec 2020 18:58:08 +0200 Subject: [PATCH] Fix an oversight from #9709 --- src/main/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/comments.js b/src/main/comments.js index 448e83028..a7ee5ba70 100644 --- a/src/main/comments.js +++ b/src/main/comments.js @@ -111,7 +111,7 @@ function decorateComment(node, comment, options, enclosingNode) { return decorateComment(child, comment, options, child); } - if (start <= commentStart) { + if (end <= commentStart) { // This child node falls completely before the comment. // Because we will never consider this node or any nodes // before it again, this node must be the closest preceding