summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-24 17:41:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-24 17:41:25 +0800
commitea41a2d39811f5df0b0f29d8440b82b4875058fb (patch)
tree5a2b21c5c0bd80dfe95aa6c14bc8a69fbb003584 /test
parent589d2fbcb28b2bbac9b287e77dba773ad8119a61 (diff)
downloadlua-language-server-ea41a2d39811f5df0b0f29d8440b82b4875058fb.zip
cleanup
Diffstat (limited to 'test')
-rw-r--r--test/definition/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua
index 78170e0e..85bcd5d5 100644
--- a/test/definition/init.lua
+++ b/test/definition/init.lua
@@ -36,6 +36,7 @@ end
function TEST(script)
files.removeAll()
+ script = script:gsub('\n', '\r\n')
local target = catch_target(script)
local start = script:find('<?', 1, true)
local finish = script:find('?>', 1, true)