Skip to content

Commit 1eb666d

Browse files
authored
Merge pull request #2184 from CppCXY/master
support almost nonstandard token formatting
2 parents 181e93f + 0b26b19 commit 1eb666d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

script/provider/formatting.lua

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,8 @@ function m.updateNonStandardSymbols(symbols)
8282
return
8383
end
8484

85-
local eqTokens = {}
86-
for _, token in ipairs(symbols) do
87-
if token:find("=") and token ~= "!=" then
88-
table.insert(eqTokens, token)
89-
end
90-
end
9185

92-
if #eqTokens ~= 0 then
93-
codeFormat.set_nonstandard_symbol()
94-
end
86+
codeFormat.set_nonstandard_symbol()
9587
end
9688

9789
config.watch(function(uri, key, value)

0 commit comments

Comments
 (0)