From c2680f4e9f0023612412595f4aefb187119c55ef Mon Sep 17 00:00:00 2001 From: smoka Date: Thu, 24 Feb 2022 15:29:46 +0330 Subject: [PATCH] feat(php): support for methods --- lua/neogen/configurations/php.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neogen/configurations/php.lua b/lua/neogen/configurations/php.lua index ebb7950..e32b93f 100644 --- a/lua/neogen/configurations/php.lua +++ b/lua/neogen/configurations/php.lua @@ -6,7 +6,7 @@ local i = require("neogen.types.template").item return { parent = { type = { "property_declaration", "const_declaration", "foreach_statement" }, - func = { "function_definition" }, + func = { "function_definition", "method_declaration" }, class = { "class_declaration" }, }, data = { @@ -25,7 +25,7 @@ return { }, }, func = { - ["function_definition"] = { + ["function_definition|method_declaration"] = { ["0"] = { extract = function(node) local tree = {