diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 11:49:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 11:49:05 +0800 |
commit | d33546238551e3771fc7f0005e788f530cd7b58c (patch) | |
tree | dbf9e537344adc8bbb0b667b25a89c5464f6674b /server/test | |
parent | 0007a89a9c9bb153c2475b85b11664761264566f (diff) | |
download | lua-language-server-d33546238551e3771fc7f0005e788f530cd7b58c.zip |
更精确的查找
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/completion/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 4d1c3e64..46544b36 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -62,7 +62,7 @@ rawset(_G, 'TEST', true) function TEST(script) return function (expect) local pos = script:find('@', 1, true) - local new_script = script:gsub('@', '') + local new_script = script:gsub('@', ' ') local ast = parser:ast(new_script) local vm = matcher.vm(ast) assert(vm) @@ -433,7 +433,7 @@ fff[#ff@] kind = CompletionItemKind.Snippet, textEdit = { start = 6, - finish = 8, + finish = 9, newText = 'fff+1] = ', }, }, |