Skip to content

Commit

Permalink
Merge pull request #2184 from CppCXY/master
Browse files Browse the repository at this point in the history
support almost nonstandard token formatting
  • Loading branch information
sumneko authored Jun 28, 2023
2 parents 181e93f + 0b26b19 commit 1eb666d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions script/provider/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1eb666d

Please sign in to comment.