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