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