really fix comment attachment
This commit is contained in:
parent
04ce3db23b
commit
0bbe94c38b
@ -74,7 +74,7 @@ pp.processComment = function (node) {
|
||||
|
||||
if (lastChild) {
|
||||
if (lastChild.leadingComments) {
|
||||
if (last(lastChild.leadingComments).end < node.start) {
|
||||
if (lastChild !== node && last(lastChild.leadingComments).end <= node.start) {
|
||||
node.leadingComments = lastChild.leadingComments;
|
||||
lastChild.leadingComments = null;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user