docs: Cleanup

This commit is contained in:
Arseny Kapoulkine 2020-06-11 08:59:31 -07:00
parent 3be2497c48
commit b3aac63429
1 changed files with 4 additions and 4 deletions

View File

@ -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)