Fix comment handling CPP special case
parent
a1e012eb40
commit
b4f749ea0c
|
@ -1345,9 +1345,12 @@ layoutBriDocM = \case
|
||||||
Nothing -> return ()
|
Nothing -> return ()
|
||||||
Just posts -> do
|
Just posts -> do
|
||||||
posts `forM_` \( ExactPrint.Types.Comment comment _ _
|
posts `forM_` \( ExactPrint.Types.Comment comment _ _
|
||||||
, ExactPrint.Types.DP (x, y)
|
, ExactPrint.Types.DP (y, x)
|
||||||
) -> do
|
) -> do
|
||||||
layoutMoveToCommentPos x y
|
-- evil hack for CPP:
|
||||||
|
case comment of
|
||||||
|
('#':_) -> layoutMoveToCommentPos y (-999)
|
||||||
|
_ -> layoutMoveToCommentPos y x
|
||||||
-- fixedX <- fixMoveToLineByIsNewline x
|
-- fixedX <- fixMoveToLineByIsNewline x
|
||||||
-- replicateM_ fixedX layoutWriteNewline
|
-- replicateM_ fixedX layoutWriteNewline
|
||||||
-- layoutMoveToIndentCol y
|
-- layoutMoveToIndentCol y
|
||||||
|
|
Loading…
Reference in New Issue