summaryrefslogtreecommitdiff
path: root/server/test/crossfile/completion.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-18 14:03:12 +0800
committersumneko <sumneko@hotmail.com>2019-04-18 14:03:12 +0800
commit0699bff5ce3807964cda703ba00caa9dc5e90cf0 (patch)
treeb3e37c1f434f0963df0872cc6d170163f9d67822 /server/test/crossfile/completion.lua
parent10680f1a44f92aa0cd32db5e3bb1960bdbb29a25 (diff)
downloadlua-language-server-0699bff5ce3807964cda703ba00caa9dc5e90cf0.zip
更新LuaParser与语法解析
Diffstat (limited to 'server/test/crossfile/completion.lua')
-rw-r--r--server/test/crossfile/completion.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/server/test/crossfile/completion.lua b/server/test/crossfile/completion.lua
index d150609e..c982607b 100644
--- a/server/test/crossfile/completion.lua
+++ b/server/test/crossfile/completion.lua
@@ -99,8 +99,8 @@ function TEST(data)
local uri = ws:uriEncode(fs.path(info.path))
local script = info.content
if info.main then
- pos = script:find('@', 1, true)
- script = script:gsub('@', '')
+ pos = script:find('$', 1, true)
+ script = script:gsub('%$', '')
mainUri = uri
mainBuf = script
end
@@ -143,7 +143,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "a@"',
+ content = 'require "a$"',
main = true,
},
completion = {
@@ -175,7 +175,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "A@"',
+ content = 'require "A$"',
main = true,
},
completion = {
@@ -199,7 +199,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "abc@"',
+ content = 'require "abc$"',
main = true,
},
completion = {
@@ -229,7 +229,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "abc@"',
+ content = 'require "abc$"',
main = true,
},
completion = {
@@ -265,7 +265,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "abc.@"',
+ content = 'require "abc.$"',
main = true,
},
completion = {
@@ -289,7 +289,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "abc.i@"',
+ content = 'require "abc.i$"',
main = true,
},
completion = {
@@ -313,7 +313,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "core.co@"',
+ content = 'require "core.co$"',
main = true,
},
completion = {
@@ -337,7 +337,7 @@ TEST {
},
{
path = 'abc/test.lua',
- content = 'require "x@"',
+ content = 'require "x$"',
main = true,
},
completion = {
@@ -367,7 +367,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "a@"',
+ content = 'require "a$"',
main = true,
},
completion = {
@@ -399,7 +399,7 @@ TEST {
},
{
path = 'test.lua',
- content = 'require "a@"',
+ content = 'require "a$"',
main = true,
},
completion = {
@@ -427,7 +427,7 @@ TEST {
path = 'b.lua',
content = [[
local t = require 'a'
- t.@
+ t.$
]],
main = true,
},
@@ -472,7 +472,7 @@ TEST {
{
path = 'b.lua',
content = [[
- ab@
+ ab$
]],
main = true,
},
@@ -507,7 +507,7 @@ TEST {
{
path = 'b.lua',
content = [[
- ab@
+ ab$
]],
main = true,
},
@@ -532,7 +532,7 @@ TEST {
path = 'a.lua',
content = [[
local japi = require 'jass.japi'
- japi.xxxaaaax@
+ japi.xxxaaaax$
]],
main = true,
},