From 26d718bba628a337ffeea9e20f2b9af7581af1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 8 Nov 2019 13:32:44 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/core/diagnostics/ambiguity-1.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server-beta/src/core/diagnostics/ambiguity-1.lua b/server-beta/src/core/diagnostics/ambiguity-1.lua index ffe43c27..1ebb0d8a 100644 --- a/server-beta/src/core/diagnostics/ambiguity-1.lua +++ b/server-beta/src/core/diagnostics/ambiguity-1.lua @@ -42,11 +42,12 @@ return function (uri, callback) and first.type ~= 'unary' and not second.op and literalMap[second.type] + and not literalMap[first[2].type] then callback { start = source.start, finish = source.finish, - message = lang.script('DIAG_AMBIGUITY_1', text.sub(first.start, first.finish)) + message = lang.script('DIAG_AMBIGUITY_1', text:sub(first.start, first.finish)) } end end @@ -56,11 +57,12 @@ return function (uri, callback) and second.type ~= 'unary' and not first.op and literalMap[second[1].type] + and not literalMap[second[2].type] then callback { start = source.start, finish = source.finish, - message = lang.script('DIAG_AMBIGUITY_1', text.sub(second.start, second.finish)) + message = lang.script('DIAG_AMBIGUITY_1', text:sub(second.start, second.finish)) } end end -- cgit v1.2.3