Skip to content

Commit f50fbcc

Browse files
committed
Added '#squish keep-eol' comment logic to SQUISH.LUA
1 parent fe9ae72 commit f50fbcc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

util/SQUISH.LUA

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ local function Squish(fileName)
127127
end
128128
local sep = pad()
129129
data = data .. sep .. token.value
130+
else
131+
local pragma = token.value:match("^--%s*%#%s*squish%s+([%w%-]+)")
132+
133+
if pragma == "keep-eol" then
134+
data = data .. '\n'
135+
end
130136
end
131137
end
132138

0 commit comments

Comments
 (0)