Skip to content

Improve paragraph filling for nested comments. #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2015

Conversation

ikirill
Copy link
Contributor

@ikirill ikirill commented Dec 1, 2014

Change paragraph-start and paragraph-separate so that haddock (-- |)
and nested comments become paragraphs; only empty lines used to be
paragraph separators. This also makes forward/backward-paragraph more
helpful.

Change haskell-fill-paragraph to recognize nested comments slightly
more accurately using forward-sexp. Also, if fill-paragraph was called
in a nested and no actual filling is necessary, make sure
non-comment-aware filling does not happen instead.

Change paragraph-start and paragraph-separate so that haddock (-- |)
and nested comments become paragraphs; only empty lines used to be
paragraph separators. This also makes forward/backward-paragraph more
helpful.

Change haskell-fill-paragraph to recognize nested comments slightly
more accurately using forward-sexp. Also, if fill-paragraph was called
in a nested and no actual filling is necessary, make sure
non-comment-aware filling does not happen instead.
@ikirill
Copy link
Contributor Author

ikirill commented Dec 1, 2014

This also fixes a problem I had where a comment like

{-
very long line
-}

would get filled to

{- very long
line -}

purcell added a commit that referenced this pull request Jan 17, 2015
Improve paragraph filling for nested comments.
@purcell purcell merged commit d412c0c into haskell:master Jan 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants