summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
authorCppCXY <812125110@qq.com>2023-06-27 15:59:05 +0800
committerCppCXY <812125110@qq.com>2023-06-27 15:59:05 +0800
commit0b26b19b6a0ff07f836b82e56650bc4f00edc9a2 (patch)
treea95fb3769d5b8bdccdd0aba6763e606eb5e77cd2 /script/provider
parentee119799a6e311c17537bc723598941ec38bf046 (diff)
downloadlua-language-server-0b26b19b6a0ff07f836b82e56650bc4f00edc9a2.zip
update formatting.lua
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/formatting.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/script/provider/formatting.lua b/script/provider/formatting.lua
index 73f9a534..58ac6f81 100644
--- a/script/provider/formatting.lua
+++ b/script/provider/formatting.lua
@@ -82,16 +82,8 @@ function m.updateNonStandardSymbols(symbols)
return
end
- local eqTokens = {}
- for _, token in ipairs(symbols) do
- if token:find("=") and token ~= "!=" then
- table.insert(eqTokens, token)
- end
- end
- if #eqTokens ~= 0 then
- codeFormat.set_nonstandard_symbol()
- end
+ codeFormat.set_nonstandard_symbol()
end
config.watch(function(uri, key, value)