julia-vscode / DocumentFormat.jl

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

Weird indenting in begin/end blocks #133

Closed robertmartin8 closed 2 years ago

robertmartin8 commented 3 years ago

When you put an x/end statement inside a begin/end block, it confuses the two end statements.

Desired:

begin
    for i in 1:10
        println(i)
    end

    hello()
end 

Current:

begin
    for i in 1:10
    println(i)
end
    hello()
end 

Environment

julialang extension v1.1.37 Vscode 1.54.3 macOS 10.14.6