beefytech / Beef

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

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

Open elusivePorpoise opened 5 months ago

elusivePorpoise commented 5 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 4 months ago

File with repro?

elusivePorpoise commented 4 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