Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elusivePorpoise opened this issue Jun 19, 2024 · 2 comments

Comments

@elusivePorpoise
Copy link

elusivePorpoise commented Jun 19, 2024

..... 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
Copy link
Collaborator

bfiete commented Jun 30, 2024

File with repro?

@elusivePorpoise
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants