diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-06-28 19:05:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 19:05:15 +0800 |
commit | 1eb666d2804f204f9c49da241479f0974f2eb7e7 (patch) | |
tree | 9db03ce6e358be0c5de3244a52dc0b1bb4aba073 | |
parent | 181e93f569dd51e940261c81ce08e895778eb090 (diff) | |
parent | 0b26b19b6a0ff07f836b82e56650bc4f00edc9a2 (diff) | |
download | lua-language-server-1eb666d2804f204f9c49da241479f0974f2eb7e7.zip |
Merge pull request #2184 from CppCXY/master
support almost nonstandard token formatting
m--------- | 3rd/EmmyLuaCodeStyle | 0 | ||||
-rw-r--r-- | script/provider/formatting.lua | 10 |
2 files changed, 1 insertions, 9 deletions
diff --git a/3rd/EmmyLuaCodeStyle b/3rd/EmmyLuaCodeStyle -Subproject d457471383e356345875bd1b8d8492fc1835d50 +Subproject 73e3ccce8b86a29833b623d0608418bda751383 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) |