summaryrefslogtreecommitdiff
path: root/script/plugins/astHelper.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/plugins/astHelper.lua')
-rw-r--r--script/plugins/astHelper.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/plugins/astHelper.lua b/script/plugins/astHelper.lua
index b12d62c6..61b3f890 100644
--- a/script/plugins/astHelper.lua
+++ b/script/plugins/astHelper.lua
@@ -38,7 +38,7 @@ end
---@param index integer
---@return parser.object?
function _M.removeArg(source, index)
- if source.type == 'function' then
+ if source.type == 'function' or source.type == 'call' then
local arg = table.remove(source.args, index)
if not arg then
return nil