julia-vscode / DocumentFormat.jl

Auto-formatter for Julia
Other
62 stars 18 forks source link

Format Document doesn't indent comments #49

Closed sebastianpech closed 2 years ago

sebastianpech commented 4 years ago

Format Document for the julia extension (also happens in fortran for me) is not correctly indenting comments?

With this code:

function foo()
# some comment
x = 10
end
for i in 1:10
    # some comment
        # some other comment
            @show i
end

After running Format Document , I get:

function foo()
# some comment
    x = 10
end
for i in 1:10
    # some comment
        # some other comment
    @show i
end