2 min

A comment in Lua is text that is completely ignored by the parser. Comments are generally added by the script writer to explain the code’s intent.

A short comment starts with a double hyphen (--) anywhere outside a string and it extends to the end of the line.

Comments can also be defined using a long format enclosed by brackets. Comments in this form can run for several lines.

  • lua
  • comments