Escapes


Note that the quoted multi-line string definition included a \n at the point where the string broke between lines. This is called an escape character (sometimes also called an "escape

Escape sequences are special combinations of characters that consist of a backslash \ followed by another character that defines the meaning of the escape. In this case, \n presents a newline character, which defined the point at which a string continues on the next line.

Lua strings support a variety of

Escape Character Meaning
\a bell
\b back space
\f form feed
\n newline
\r carriage return
\t horizontal tab
\v vertical tab
\ backslash
\" double quote
\' single quote
\[ left square bracket
\] right square bracket