From b48752476c7c16cbfe376526e0c84d9ca1f21fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Granstr=C3=B6m?= Date: Tue, 28 Sep 2021 19:18:13 +0200 Subject: [PATCH] Format with stylua --- lua/neogen/configurations/c.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lua/neogen/configurations/c.lua b/lua/neogen/configurations/c.lua index e166144..0f518a4 100644 --- a/lua/neogen/configurations/c.lua +++ b/lua/neogen/configurations/c.lua @@ -33,9 +33,9 @@ local c_function_extractor = function(node) }, }, { - retrieve = "first", - node_type = "primitive_type", - extract = true, + retrieve = "first", + node_type = "primitive_type", + extract = true, }, c_params, } @@ -50,15 +50,15 @@ local c_function_extractor = function(node) end local has_return_statement = function() - -- function implementation - if res.return_statement then - return res.return_statement - -- function prototype - elseif res.function_declarator and res.primitive_type and res.primitive_type[1] ~= "void" then - return res.primitive_type - end - -- not found - return nil + -- function implementation + if res.return_statement then + return res.return_statement + -- function prototype + elseif res.function_declarator and res.primitive_type and res.primitive_type[1] ~= "void" then + return res.primitive_type + end + -- not found + return nil end return {