summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-12 17:09:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-12 17:09:12 +0800
commitf73fe1369a79344394bf258df1782b9aafe4eff5 (patch)
tree632ad1c240d9a5f8f46d0e2958243a81e0264871 /test/command
parent2c6db7286b64e8ff59b3d36e7898211c4633fc7f (diff)
downloadlua-language-server-f73fe1369a79344394bf258df1782b9aafe4eff5.zip
fix #729
Diffstat (limited to 'test/command')
-rw-r--r--test/command/auto-require.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/command/auto-require.lua b/test/command/auto-require.lua
index a52662fb..c2c0935f 100644
--- a/test/command/auto-require.lua
+++ b/test/command/auto-require.lua
@@ -40,4 +40,34 @@ local aaaaaa = require 'aaa'
text = 'local test = require \'test\'\n'
}
+TEST [[
+local DEBUG = true
+local aaaaaa = require 'aaa'
+]] 'test' {
+ start = 20000,
+ finish = 20000,
+ text = 'local test = require \'test\'\n'
+}
+
+TEST [[
+-- comment
+-- comment
+local aaaaaa = require 'aaa'
+]] 'test' {
+ start = 30000,
+ finish = 30000,
+ text = 'local test = require \'test\'\n'
+}
+
+TEST [[
+--[=[
+comment chunk
+]=]
+local aaaaaa = require 'aaa'
+]] 'test' {
+ start = 40000,
+ finish = 40000,
+ text = 'local test = require \'test\'\n'
+}
+
client.editText = originEditText