rokucommunity / brighterscript-formatter

A code formatter for BrighterScript (and BrightScript)
MIT License
15 stars 5 forks source link

typecast expression incorrectly de-indents #82

Open TwitchBronBron opened 8 months ago

TwitchBronBron commented 8 months ago
sub test()
    if true
        if true
            promises.chain(media as dynamic).then(sub ()
                print 1
            end sub).catch(sub ()
            end sub)
        end if
    end if
end sub

turns into

sub test()
    if true
    if true
    promises.chain(media as dynamic).then(sub ()
        print 1
end sub).catch(sub ()
    end sub)
end if
end if
end sub