diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2023-02-05 12:01:01 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2023-10-08 19:26:10 +0300 |
commit | de7cbe87894cc9eaea1f3057fff7fe98f66aad25 (patch) | |
tree | 93d2c2ffc414e59693197afd65563e2bf5d11bff /modules/mono/csharp_script.cpp | |
parent | 6916349697a4339216469e9bf5899b983d78db07 (diff) | |
download | redot-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.cpp | 5 |
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 |