summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2022-01-21 19:27:41 +0800
committerCppCXY <812125110@qq.com>2022-01-21 19:27:41 +0800
commit6b2dbe282f92928e38d85788f0a6eee26c647042 (patch)
treea22923b1937e51c841956c8b7094bf066a7c33f0 /script/core
parent4a1314d098a18b7a525b59e76f5c0055c2f2905f (diff)
downloadlua-language-server-6b2dbe282f92928e38d85788f0a6eee26c647042.zip
修改命名
Diffstat (limited to 'script/core')
-rw-r--r--script/core/formatting.lua4
-rw-r--r--script/core/rangeformatting.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/script/core/formatting.lua b/script/core/formatting.lua
index 8f72028b..6c57b8c2 100644
--- a/script/core/formatting.lua
+++ b/script/core/formatting.lua
@@ -1,11 +1,11 @@
-local code_format = require "code_format"
+local codeFormat = require("code_format")
local files = require("files")
local log = require("log")
return function(uri)
local text = files.getText(uri)
local ast = files.getState(uri)
- local status, formattedText = code_format.format(uri, text)
+ local status, formattedText = codeFormat.format(uri, text)
if not status then
if formattedText ~= nil then
diff --git a/script/core/rangeformatting.lua b/script/core/rangeformatting.lua
index b66f0fbd..de9516c1 100644
--- a/script/core/rangeformatting.lua
+++ b/script/core/rangeformatting.lua
@@ -1,11 +1,11 @@
-local code_format = require "code_format"
+local codeFormat = require("code_format")
local files = require("files")
local log = require("log")
local converter = require("proto.converter")
return function(uri, range)
local text = files.getText(uri)
- local status, formattedText, startLine, endLine = code_format.range_format(
+ local status, formattedText, startLine, endLine = codeFormat.range_format(
uri, text, range.start.line, range["end"].line)
if not status then