(lua) Update configurations (#43)
This commit is contained in:
@@ -63,7 +63,7 @@ end
|
|||||||
return {
|
return {
|
||||||
-- Search for these nodes
|
-- Search for these nodes
|
||||||
parent = {
|
parent = {
|
||||||
func = { "function", "local_function", "local_variable_declaration", "field", "variable_declaration" },
|
func = { "function_declaration", "assignment_statement", "variable_declaration" },
|
||||||
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" },
|
||||||
@@ -72,7 +72,7 @@ return {
|
|||||||
data = {
|
data = {
|
||||||
func = {
|
func = {
|
||||||
-- When the function is inside one of those
|
-- When the function is inside one of those
|
||||||
["local_variable_declaration|field|variable_declaration"] = {
|
["variable_declaration|assignment_statement"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
return function_extractor(node, "local")
|
return function_extractor(node, "local")
|
||||||
@@ -80,7 +80,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- When the function is in the root tree
|
-- When the function is in the root tree
|
||||||
["function|local_function"] = {
|
["function_declaration"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
return function_extractor(node, "function")
|
return function_extractor(node, "function")
|
||||||
|
|||||||
Reference in New Issue
Block a user