JuliaFormatter.jl
JuliaFormatter.jl copied to clipboard
incorrect formatting of comments - Version 2
Hello, First of all, thank you for this very convenient package.
I have the habit of using "banner"-like comments to organize source files (see below) With 2.0, this causes issues with formatting.
A file like:
function foo(x)
return println(x)
end
#=====================#
######## Part1 ########
#=====================#
function foo()
return println("foo")
end
#=====================#
######## Part2 ########
#=====================#
function bar()
return println("bar")
end
gets formatted to (format(".", BlueStyle()
):
function foo(x)
return println(x)
end#=====================##=====================#
######## Part1 ########
function foo()
return println("foo")
end#=====================##=====================#
######## Part2 ########
function bar()
return println("bar")
end