You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> shrinko8 test2.lua out.lua -m --no-minify-comments --no-minify-spaces --const dev true
In this case, the --true/--false comments are removed completely for some reason. But weirdly, this only happens when the --[[something]] comment exists -- remove it and the behavior is fine
I'm looking into it, but it's a bit tricky.
Case 1 is the one I'm least sure about - it's kinda arbitrary whether a comment is applied to an empty block (?!) or the removed "end".
A few weird cases I'm running into; I want to preserve comments in my file but am uncovering some bugs:
case 1
expected output:
--cool
actual output: (nothing)
expected output:
--cool
actual output: (nothing)
case 2
test2.lua:
In this case, the
--true
/--false
comments are removed completely for some reason. But weirdly, this only happens when the--[[something]]
comment exists -- remove it and the behavior is finecase 3
test3.lua:
(expected output: comments should not be removed)
The text was updated successfully, but these errors were encountered: