Skip to content

Commit e56f18b

Browse files
committed
Added ':' to characters that can have spaces removed from them.
1 parent 46f0710 commit e56f18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/SQUISH.LUA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ local function Squish(fileName)
102102
for _, token in ipairs(tokens) do
103103
if token.type == "code" then
104104
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
105+
token.value = token.value:gsub("%s*([%(%){}<>.,:;=%+%-%*/%^])%s*", "%1") -- Remove spaces around operators and punctuation
106106
token.value = token.value:gsub("^%s+", "") -- Remove leading whitespace
107107
token.value = token.value:gsub("%s+$", "") -- Remove trailing whitespace
108108
end

0 commit comments

Comments
 (0)