(go) Update configurations

This commit is contained in:
danymat
2022-01-12 12:44:41 +01:00
parent d0c7212a78
commit 7e7fbc4ff2
2 changed files with 11 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ There is a list of supported languages and fields, with their annotation style
| | [Doxygen](https://www.doxygen.nl/manual/commands.html) (`"doxygen"`) | `@param`, `@return`, `@brief`, `@file`|
| cpp | | | `func`, `file`, `class`|
| | [Doxygen](https://www.doxygen.nl/manual/commands.html) (`"doxygen"`) | `@param`, `@return`, `@tparam`, `@brief`, `@file`, `@class`|
| go | | | |
| go | | | `func`, `type` |
| | [Godoc](https://go.dev/blog/godoc) (`"godoc"`) | |
| java | | | `func`, `class` |
| | [Javadoc](https://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html#documentationcomments) (`"javadoc"`) | `@param`, `@return`, `@throws`|

View File

@@ -1,6 +1,7 @@
return {
parent = {
func = { "function_declaration" },
type = { "package_clause", "const_declaration", "var_declaration" },
},
data = {
@@ -13,6 +14,15 @@ return {
},
},
},
type = {
["package_clause|const_declaration|var_declaration"] = {
["0"] = {
extract = function()
return {}
end,
},
},
},
},
template = {