summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/unknown-operator.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-06 23:49:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-06 23:49:28 +0800
commita19a1f4f077830014dd2d2c378988e7770be2be1 (patch)
tree137f0455d0648c425b96004a236c074f30ad1340 /script/core/diagnostics/unknown-operator.lua
parent79cc877095745be377b9dd189ee5e38cf35a3c5e (diff)
downloadlua-language-server-a19a1f4f077830014dd2d2c378988e7770be2be1.zip
support `call`
Diffstat (limited to 'script/core/diagnostics/unknown-operator.lua')
-rw-r--r--script/core/diagnostics/unknown-operator.lua5
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,