diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-02 20:31:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-02 20:31:35 +0800 |
commit | be0d11df2d89b8cb8cf24190ccfbd273256f4c74 (patch) | |
tree | 328597311c655f39bc43c9bcb963a4fd7491a65c /script/vm/local-id.lua | |
parent | 4508b4018dced01fe5420e008e813199d0ce856f (diff) | |
download | lua-language-server-be0d11df2d89b8cb8cf24190ccfbd273256f4c74.zip |
update
Diffstat (limited to 'script/vm/local-id.lua')
-rw-r--r-- | script/vm/local-id.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script/vm/local-id.lua b/script/vm/local-id.lua index ddcb9e97..230f48eb 100644 --- a/script/vm/local-id.lua +++ b/script/vm/local-id.lua @@ -59,7 +59,11 @@ local compileMap = util.switch() if not parentID then return end - source._localID = parentID .. m.ID_SPLITE .. guide.getKeyName(source) + local key = guide.getKeyName(source) + if not key then + return + end + source._localID = parentID .. m.ID_SPLITE .. key source.index._localID = source._localID if source.type == 'setindex' then m.compileLocalID(source.next) |