diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-06 23:49:28 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-06 23:49:28 +0800 |
commit | a19a1f4f077830014dd2d2c378988e7770be2be1 (patch) | |
tree | 137f0455d0648c425b96004a236c074f30ad1340 /script/core/diagnostics/unknown-operator.lua | |
parent | 79cc877095745be377b9dd189ee5e38cf35a3c5e (diff) | |
download | lua-language-server-a19a1f4f077830014dd2d2c378988e7770be2be1.zip |
support `call`
Diffstat (limited to 'script/core/diagnostics/unknown-operator.lua')
-rw-r--r-- | script/core/diagnostics/unknown-operator.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/diagnostics/unknown-operator.lua b/script/core/diagnostics/unknown-operator.lua index 5e8177c3..7404b5ef 100644 --- a/script/core/diagnostics/unknown-operator.lua +++ b/script/core/diagnostics/unknown-operator.lua @@ -21,8 +21,9 @@ return function (uri, callback) local op = doc.op if op then local opName = op[1] - if not vm.BINARY_MAP[opName] - and not vm.UNARY_MAP[opName] then + if not vm.OP_BINARY_MAP[opName] + and not vm.OP_UNARY_MAP[opName] + and not vm.OP_OTHER_MAP[opName] then callback { start = doc.op.start, finish = doc.op.finish, |