summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-01 15:10:19 +0200
committerGitHub <noreply@github.com>2020-04-01 15:10:19 +0200
commite53cbba36cf6cbf4f42621a0650ca8e57989379e (patch)
tree467ad766a57aa15d09824c4d0f31c0e90e5c4068
parentd229507fa7adc54f7b99b25a8707b3fc445e518f (diff)
parent49efd6093e35e5a51e4d41673341961e0af1220d (diff)
Merge pull request #37484 from Calinou/csharp-verbatim-string-highlight
Remove syntax highlighting for C# verbatim strings due to bugs
-rw-r--r--modules/mono/csharp_script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index bb3d0ef46f..a007491142 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -316,7 +316,8 @@ void CSharpLanguage::get_string_delimiters(List<String> *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) {