@@ -218,7 +218,9 @@ spit dirty printingComments txt' = do
218 , scDirtyLine = scDirtyLine sc || dirty
218 , scDirtyLine = scDirtyLine sc || dirty
219 , scRequestedDelimiter = RequestedNothing
219 , scRequestedDelimiter = RequestedNothing
220 , scLastCommentSpan =
220 , scLastCommentSpan =
221+ -- NOTE If there are pending comments, do not reset last comment
221− if printingComments
223+ if printingComments || (not . null . scPendingComments) sc
222 then scLastCommentSpan sc
224 then scLastCommentSpan sc
223 else Nothing
225 else Nothing