From ce7775f054c07c0ab8f13ed84ca1694659f2ea90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 20 Dec 2018 20:30:00 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=E4=BB=8Erequire=20'xxx'=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/definition.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/src/matcher/definition.lua') diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua index c31f817c..18804516 100644 --- a/server/src/matcher/definition.lua +++ b/server/src/matcher/definition.lua @@ -64,6 +64,13 @@ local function parseResult(vm, result) } end end + elseif tp == 'string' then + -- require 'XXX' 专用 + positions[#positions+1] = { + 0, + 0, + result.uri, + } end return positions end -- cgit v1.2.3