qsharp-compiler icon indicating copy to clipboard operation
qsharp-compiler copied to clipboard

Comments before closing brace are indented incorrectly

Open bamarsha opened this issue 4 years ago • 1 comments

The formatter indents this program incorrectly:

namespace Foo {
    function Bar() : Unit {
        let x = 0;
        // Hello world
    }
}

Output:

namespace Foo {
    function Bar() : Unit {
        let x = 0;
    // Hello world
    }
}

bamarsha avatar Feb 12 '21 17:02 bamarsha

TODO(kuzminrobin): Master the Formatter, Update the ReadMe if necessary. Ask: Scott, Bettina.

kuzminrobin avatar Jan 24 '22 19:01 kuzminrobin