Make-Games-With-Love

Tricks With Comments

Uncomment code

While debugging it might be useful to temporarily uncomment code. You can do this by sourrounding your code with a block comment and adding or taking away a dash - when needed.

-- commented out
--[[
    print("this is printed")
--]]

-- working code
---[[
    print("this is printed")
--]]

This gives us no error because the first and the last line are still commented out but the block comment is not intact.