summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2023-02-05 12:01:01 +0300
committerDanil Alexeev <danil@alexeev.xyz>2023-10-08 19:26:10 +0300
commitde7cbe87894cc9eaea1f3057fff7fe98f66aad25 (patch)
tree93d2c2ffc414e59693197afd65563e2bf5d11bff /modules/mono/csharp_script.cpp
parent6916349697a4339216469e9bf5899b983d78db07 (diff)
downloadredot-engine-de7cbe87894cc9eaea1f3057fff7fe98f66aad25.tar.gz
Highlight doc comments in a different color
Diffstat (limited to 'modules/mono/csharp_script.cpp')
-rw-r--r--modules/mono/csharp_script.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 95bf848cbf..23d0eb8b67 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -328,6 +328,11 @@ void CSharpLanguage::get_comment_delimiters(List<String> *p_delimiters) const {
p_delimiters->push_back("/* */"); // delimited comment
}
+void CSharpLanguage::get_doc_comment_delimiters(List<String> *p_delimiters) const {
+ p_delimiters->push_back("///"); // single-line doc comment
+ p_delimiters->push_back("/** */"); // delimited doc comment
+}
+
void CSharpLanguage::get_string_delimiters(List<String> *p_delimiters) const {
p_delimiters->push_back("' '"); // character literal
p_delimiters->push_back("\" \""); // regular string literal