JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Disable formatting multi-line comment inline

Open findmyway opened this issue 5 years ago • 2 comments

julia> format_text("f(a;#= b=3 =#, c=4)")
"f(a, c = 4)#= b=3 =#"

Could we disable formatting here?

findmyway avatar May 30 '20 16:05 findmyway

Took a look at this and it's far more involved than I thought. The problem being a single line comment of the form #= comment =# can appear anywhere in the file whereas other comments are far more restricted where they can appear. Other comments can only appear at the end of a line (inline comment) or in between code so it's much easier to account for them because of that predictable structure.

For the time being this will be left as is.

domluna avatar Sep 27 '20 16:09 domluna

I see. Thanks for your reply.

findmyway avatar Sep 28 '20 02:09 findmyway