JuliaFormatter.jl
JuliaFormatter.jl copied to clipboard
Disable formatting multi-line comment inline
julia> format_text("f(a;#= b=3 =#, c=4)")
"f(a, c = 4)#= b=3 =#"
Could we disable formatting here?
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.
I see. Thanks for your reply.