mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix hexadecimal escape sequence
This commit is contained in:
parent
d355a83ee8
commit
dfe6230c5f
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ The rest of this document documents additional syntax used in Luau.
|
|||
|
||||
## String literals
|
||||
|
||||
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):
|
||||
Luau implements support for hexadecimal (`\x`), 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):
|
||||
|
||||
- `\xAB` 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue