diff --git a/docs/syntax.md b/docs/syntax.md index 81fcec79..3ed998d5 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -20,11 +20,11 @@ end Note that future versions of Lua extend the Lua 5.1 syntax with the following features; with the exception of the string literals, these are **not** supported by Luau: -- hexadecimal (\\0x), Unicode (\\u) and \\z escapes for string literals +- hexadecimal (`\0x`), Unicode (`\u`) and `\z` escapes for string literals - goto statements and labels - bitwise operators -- floor division operator (//) -- \<toclose> and \<const> local attributes +- floor division operator (`//`) +- `<toclose>` and `<const>` local attributes > For details please refer to [compatibility section](compatibility.md). @@ -33,7 +33,7 @@ The rest of this document documents additional syntax used in Luau. String literals =============== -As noted above, Luau implements support for hexadecimal (\\0x), Unicode (\\u) and \\z escapes for string literals. This syntax follows [Lua 5.3 syntax](https://www.lua.org/manual/5.3/manual.html#3.1): +As noted above, Luau implements support for hexadecimal (`\0x`), Unicode (`\u`) and `\z` escapes for string literals. This syntax follows [Lua 5.3 syntax](https://www.lua.org/manual/5.3/manual.html#3.1): - `\0xAB` inserts a character with the code 0xAB into the string - `\u{ABC}` inserts a UTF8 byte sequence that encodes U+0ABC character into the string (note that braces are mandatory)