From b3aac634291ee238d457db83e526d9617c45e0b8 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 11 Jun 2020 08:59:31 -0700 Subject: [PATCH] docs: Cleanup --- docs/syntax.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/syntax.md b/docs/syntax.md index 81fcec7..3ed998d 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 (//) -- \ and \ local attributes +- floor division operator (`//`) +- `` and `` 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)