summaryrefslogtreecommitdiffstats
path: root/modules/mono/csharp_script.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-10-09 23:21:54 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-10-09 23:21:54 +0200
commit71a8ac41fbea5bb97c25d66e17c06e8dfff4ebf1 (patch)
tree8cff3a7f5b0251620f3fe16804d0a7f8138452cf /modules/mono/csharp_script.cpp
parent42425baa59956dc9d1e22341fe5e5d7f8fad5067 (diff)
parentde7cbe87894cc9eaea1f3057fff7fe98f66aad25 (diff)
downloadredot-engine-71a8ac41fbea5bb97c25d66e17c06e8dfff4ebf1.tar.gz
Merge pull request #72751 from dalexeev/doc-comment-color
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