Skip to content

support almost nonstandard token formatting #2184

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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