This commit is contained in:
@@ -55,6 +55,7 @@ return {
|
||||
parent = {
|
||||
class = { "class_declaration", "interface_declaration", "record_declaration" },
|
||||
func = { "method_declaration", "constructor_declaration" },
|
||||
type = { "field_declaration", "enum_constant", "formal_parameter" },
|
||||
},
|
||||
|
||||
data = {
|
||||
@@ -139,6 +140,15 @@ return {
|
||||
},
|
||||
},
|
||||
},
|
||||
type = {
|
||||
["field_declaration|enum_constant|formal_parameter"] = {
|
||||
["0"] = {
|
||||
extract = function()
|
||||
return {}
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
template = template:add_default_annotation("javadoc"),
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
local i = require("neogen.types.template").item
|
||||
|
||||
return {
|
||||
{ nil, "/**", { no_results = true, type = { "class", "func" } } },
|
||||
{ nil, " * $1", { no_results = true, type = { "class", "func" } } },
|
||||
{ nil, " */", { no_results = true, type = { "class", "func" } } },
|
||||
{ nil, "/**", { no_results = true, type = { "class", "func", "type" } } },
|
||||
{ nil, " * $1", { no_results = true, type = { "class", "func", "type" } } },
|
||||
{ nil, " */", { no_results = true, type = { "class", "func", "type" } } },
|
||||
|
||||
{ nil, "/**" },
|
||||
{ nil, " * $1" },
|
||||
|
||||
Reference in New Issue
Block a user