fix 'before' comment should not be linked to node after if there are
code before on the same line.