We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f0710 commit e56f18bCopy full SHA for e56f18b
util/SQUISH.LUA
@@ -102,7 +102,7 @@ local function Squish(fileName)
102
for _, token in ipairs(tokens) do
103
if token.type == "code" then
104
token.value = token.value:gsub("%s+", " ") -- Replace multiple spaces with a single space
105
- token.value = token.value:gsub("%s*([%(%){}<>.,;=%+%-%*/%^])%s*", "%1") -- Remove spaces around operators and punctuation
+ token.value = token.value:gsub("%s*([%(%){}<>.,:;=%+%-%*/%^])%s*", "%1") -- Remove spaces around operators and punctuation
106
token.value = token.value:gsub("^%s+", "") -- Remove leading whitespace
107
token.value = token.value:gsub("%s+$", "") -- Remove trailing whitespace
108
end
0 commit comments