beefytech / Beef

Beef Programming Language
http://www.beeflang.org
Other
2.49k stars 128 forks source link

'#else' and '#endif' in multi-line strings/comments breaks the IDE's formatter #1991

Open elusivePorpoise opened 3 months ago

elusivePorpoise commented 3 months ago

..... when not preceded by other chars in the same line. image

edit: only occurs when the code is between a Beef #if and #endif

bfiete commented 2 months ago

File with repro?

elusivePorpoise commented 2 months ago

File with repro?

using System;

namespace test;

#if DEBUG
class Program
{
    static int Main()
    {

        var multiString = """
            good
            #else
    bad
            #endif
    alsobad // was "also bad"
    """;

        return 0;
    }
}
#endif