(lua) Update configurations (#63)

This commit is contained in:
danymat
2022-02-04 09:21:02 +01:00
parent 271260c2d8
commit 701d55f1a7

View File

@@ -69,7 +69,7 @@ end
return {
-- Search for these nodes
parent = {
func = { "function_declaration", "assignment_statement", "variable_declaration" },
func = { "function_declaration", "assignment_statement", "variable_declaration", "field"},
class = { "local_variable_declaration", "variable_declaration" },
type = { "local_variable_declaration", "variable_declaration" },
file = { "chunk" },
@@ -78,7 +78,7 @@ return {
data = {
func = {
-- When the function is inside one of those
["variable_declaration|assignment_statement"] = {
["variable_declaration|assignment_statement|field"] = {
["0"] = {
extract = function(node)
return function_extractor(node, "local")