eclipse-archived / ceylon.formatter

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

Formatting an empty compilation unit removes any comments #70

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

Corner case I found while investigating #68:

/*
 If the file only contains a comment,
 it shouldn’t be removed of course
 */

The formatted code is empty.

lucaswerkmeister commented 10 years ago

So there are two ways to solve this, I think…

lucaswerkmeister commented 10 years ago

Fixed, that was a lot easier than I feared :)