eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

importStyle=singleLine #87

Closed gavinking closed 9 years ago

gavinking commented 9 years ago

The importStyle=singleLine setting is pretty confusing. It doesn't actually really work as advertised in the sense that it doesn't actually force your import statement onto a single line.

I think some additional option(s) might be necessary here. Indeed, it might make sense to support options in the form 0..0, 0..1, 1..1 instead of the enumeration.

lucaswerkmeister commented 9 years ago

See #85.

gavinking commented 9 years ago

I understand the semantics (by experiment). I'm saying that an additional option is called for.

lucaswerkmeister commented 9 years ago

So, instead of an importMode enum, a lineBreaksBetweenImports (-ImportElements?) range? Is that what you’re suggesting?

gavinking commented 9 years ago

Thanks