Add evil workaround for CPP comment indentation
parent
8b0300df83
commit
fb2483242a
|
@ -1168,7 +1168,10 @@ layoutBriDocM = \case
|
||||||
priors `forM_` \( ExactPrint.Types.Comment comment _ _
|
priors `forM_` \( ExactPrint.Types.Comment comment _ _
|
||||||
, ExactPrint.Types.DP (y, x)
|
, ExactPrint.Types.DP (y, x)
|
||||||
) -> do
|
) -> do
|
||||||
layoutMoveToCommentPos y x
|
-- 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