diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 18:06:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 18:06:36 +0800 |
commit | ad72c1fdc4e8d1fb9afca2dbe10e3c425ead4786 (patch) | |
tree | 95591bfcb697392b0119471ec939f3dd3caaa903 /script | |
parent | 3d854460b06ef79f00ba45c6702bcc828c6593d6 (diff) | |
download | lua-language-server-ad72c1fdc4e8d1fb9afca2dbe10e3c425ead4786.zip |
fix
Diffstat (limited to 'script')
-rw-r--r-- | script/core/diagnostics/duplicate-index.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/duplicate-index.lua b/script/core/diagnostics/duplicate-index.lua index 895aba7e..5d354329 100644 --- a/script/core/diagnostics/duplicate-index.lua +++ b/script/core/diagnostics/duplicate-index.lua @@ -17,7 +17,7 @@ return function (uri, callback) if obj.type == 'tablefield' or obj.type == 'tableindex' then local name = noder.getID(obj) - if name then + if name and name:sub(-1) ~= '*' then if not mark[name] then mark[name] = {} end |