(lua) Update configurations (#43)

This commit is contained in:
danymat
2022-01-25 21:12:39 +01:00
parent 4c6b4e6d5e
commit 291fb5d98c

View File

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