diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 21:02:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 21:02:39 +0800 |
commit | ea6bf371230b12e478139afb3730c7aa9d5edcd9 (patch) | |
tree | 71d577ff3d954fb01025f05f3bff1f607bde3931 | |
parent | f0d11c1763a77dfd99b7eaccab042accdcfe8b20 (diff) | |
download | lua-language-server-ea6bf371230b12e478139afb3730c7aa9d5edcd9.zip |
排除掉arg
-rw-r--r-- | server/src/matcher/diagnostics.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 28a18013..f3aeb9c4 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -28,7 +28,8 @@ local function searchUndefinedGlobal(results, callback) goto NEXT_VAR end if type(index) == 'string' then - if index:lower() == 'log' then + local lIndex = index:lower() + if lIndex == 'log' or lIndex == 'arg' then goto NEXT_VAR end if not index:find '%l' then |