greglook / cljstyle

A tool for formatting Clojure code
Eclipse Public License 1.0
293 stars 39 forks source link

Cljfmt eats a comment in this import statement #10

Closed drewinglis closed 4 years ago

drewinglis commented 5 years ago
$ cljfmt check foo.clj 
--- a/foo.clj
+++ b/foo.clj
@@ -2,7 +2,6 @@
   (:import
     ;; Single-class imports can be collapsed into a symbol
     clojure.lang.Keyword
-    ;; Otherwise break the class names out onto new lines
     (java.io
       InputStream
       OutputStream)))
1 files formatted incorrectly
$ cat foo.clj
(ns foo
  (:import
    ;; Single-class imports can be collapsed into a symbol
    clojure.lang.Keyword
    ;; Otherwise break the class names out onto new lines
    (java.io
      InputStream
      OutputStream)))