syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
In Lua how to comment a block?
Tags: lua comment

If I want to comment out a block of code, I use dashes and brackets.

Demo:
-- block_comment.lua

-- Ima comment
print('hello')

--[[
Ima comment too
print('I should not be seen.')
--]]

print('bye')


syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me