1
1
mirror of https://github.com/google/ormolu.git synced 2024-11-27 13:13:23 +03:00
ormolu/data/examples
mrkkrp a3a93ebfef Refactor the comment rendering code and ‘newline’
This removes (or rather puts it to a lower level) logic around “modifying
newline” because it was very hard to reason about and almost blocked my work
on fixing issue #337.

I also dropped debugging output because it's too verbose and I'm not using
it anyway.

As part of these changes I also changed now the ‘newline’ combinator works.
Now, similar to ‘space’, the second ‘newline’ in a row just tells the
rendering engine to prefix next thing with a newline, using the ‘newline’
combinator more than twice in a row has no effect.

To take full advantage of the new feature I also went through the code and
simplified some logic around outputting exact amount of newlines because now
it's harder to get things wrong, so we can be less careful with counting
newlines.
2019-09-05 16:56:43 +02:00
..
declaration Support infix patern synonyms 2019-09-05 11:38:23 +02:00
import Change parens style and how separated lists of items are printed 2019-08-04 13:32:06 +02:00
module-header Tweak formatting of warning pragmas 2019-08-09 11:00:06 +02:00
other Refactor the comment rendering code and ‘newline’ 2019-09-05 16:56:43 +02:00