Skip to content

Commit

Permalink
fix #257
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Nov 17, 2020
1 parent 2fb6504 commit 85c85d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script-beta/parser/guide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ end

function m.getSimpleName(obj)
if obj.type == 'call' then
local key = obj.args[2]
local key = obj.args and obj.args[2]
return m.getKeyName(key)
elseif obj.type == 'table' then
return ('t|%p'):format(obj)
Expand Down

0 comments on commit 85c85d3

Please sign in to comment.