From 49efd6093e35e5a51e4d41673341961e0af1220d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 1 Apr 2020 09:12:47 +0200 Subject: [PATCH] Remove syntax highlighting for C# verbatim strings due to bugs This closes #32336. --- modules/mono/csharp_script.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 28bacbd0f01..4ccce529c36 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -316,7 +316,8 @@ void CSharpLanguage::get_string_delimiters(List *p_delimiters) const { p_delimiters->push_back("' '"); // character literal p_delimiters->push_back("\" \""); // regular string literal - p_delimiters->push_back("@\" \""); // verbatim string literal + // Verbatim string literals (`@" "`) don't render correctly, so don't highlight them. + // Generic string highlighting suffices as a workaround for now. } static String get_base_class_name(const String &p_base_class_name, const String p_class_name) {