diff --git a/README.md b/README.md index dddd75a..686c246 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,7 @@ There is a list of supported languages and fields, with their annotation style | | [Alternative](https://stackoverflow.com/questions/30009650/how-do-you-document-function-arguments) (`"alternative"`) | | | csharp | | | `func`, `file`, `class`| | | [Xmldoc](https://docs.microsoft.com/fr-fr/dotnet/csharp/language-reference/xmldoc/) (`"xmldoc"`) | ``, ``,``| +| | [Doxygen](https://www.doxygen.nl/manual/commands.html) (`"doxygen"`) | `@param`, `@return`, `@brief`| ## Adding Languages diff --git a/lua/neogen/configurations/csharp.lua b/lua/neogen/configurations/csharp.lua index 7cf0ce8..78923a4 100644 --- a/lua/neogen/configurations/csharp.lua +++ b/lua/neogen/configurations/csharp.lua @@ -120,5 +120,18 @@ return { { "return_statement", "/// $1", { type = { "func", "type" } } }, { nil, "/// ", {} }, }, + + doxygen = { + { nil, "/**", { no_results = true, type = { "func", "class" } } }, + { nil, " * @brief $1", { no_results = true, type = { "func", "class" } } }, + { nil, " */", { no_results = true, type = { "func", "class" } } }, + + { nil, "/**" }, + { nil, " * @brief $1" }, + { nil, " *" }, + { "identifier", " * @param %s $1" }, + { "return_statement", " * @return $1" }, + { nil, " */" }, + }, }, }