From b97b7103f0a6fed9f14d56cc859df19f5e208b79 Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Fri, 25 Oct 2024 17:46:31 +0300 Subject: [PATCH 1/2] language-snippets.ent Explain the meaning of nums and add tags Maybe we can explain what these numbers mean and get rid of the excessive number of parentheses? :) --- language-snippets.ent | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index ebd46210f9a6..d84c0a83a61f 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -3778,32 +3778,38 @@ local: { - " " (ASCII 32 (0x20)), an ordinary space. + " " (ASCII codepoint 32 + in decimal, or 0x20 in hexadecimal), an ordinary space. - "\t" (ASCII 9 (0x09)), a tab. + "\t" (ASCII codepoint 9 + in decimal, or 0x09 in hexadecimal), a tab. - "\n" (ASCII 10 (0x0A)), a new line (line feed). + "\n" (ASCII codepoint 10 + in decimal, or 0x0A in hexadecimal), a new line (line feed). - "\r" (ASCII 13 (0x0D)), a carriage return. + "\r" (ASCII codepoint 13 + in decimal, or 0x0D in hexadecimal), a carriage return. - "\0" (ASCII 0 (0x00)), the NUL-byte. + "\0" (ASCII codepoint 0 + in decimal, or 0x00 in hexadecimal), the NUL-byte. - "\v" (ASCII 11 (0x0B)), a vertical tab. + "\v" (ASCIIcodepoint 11 + in decimal, or 0x0B in hexadecimal), a vertical tab. From 628ca3be7265cafb9c2e009b2ed952b157eed30b Mon Sep 17 00:00:00 2001 From: Mikhail Alferov Date: Sat, 26 Oct 2024 04:46:04 +0300 Subject: [PATCH 2/2] language-snippets.ent Replace dec codepoint to mnemonics --- language-snippets.ent | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index d84c0a83a61f..60216a65b408 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -3778,38 +3778,38 @@ local: { - " " (ASCII codepoint 32 - in decimal, or 0x20 in hexadecimal), an ordinary space. + " ": ASCII SP character + 0x20, an ordinary space. - "\t" (ASCII codepoint 9 - in decimal, or 0x09 in hexadecimal), a tab. + "\t": ASCII HT character + 0x09, a tab. - "\n" (ASCII codepoint 10 - in decimal, or 0x0A in hexadecimal), a new line (line feed). + "\n": ASCII LF character + 0x0A, a new line (line feed). - "\r" (ASCII codepoint 13 - in decimal, or 0x0D in hexadecimal), a carriage return. + "\r": ASCII CR character + 0x0D, a carriage return. - "\0" (ASCII codepoint 0 - in decimal, or 0x00 in hexadecimal), the NUL-byte. + "\0": ASCII NUL character + 0x00, the NUL-byte. - "\v" (ASCIIcodepoint 11 - in decimal, or 0x0B in hexadecimal), a vertical tab. + "\v": ASCII VT + character 0x0B, a vertical tab.