From 80815f8d855a049c3bf567d6d7c11b136db62d09 Mon Sep 17 00:00:00 2001 From: laniakea64 Date: Sun, 15 Sep 2024 12:13:53 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 420bbcb9d5..3e9d3a575c 100644 --- a/README.md +++ b/README.md @@ -1279,6 +1279,16 @@ string-with-slash := "\" string-with-tab := " " ``` +Arbitrary characters can be escaped with `\u{X}` where `X` is up to six hex digitsmaster: +```just +just := "\u{1F916} Just a command runner" +``` + +```sh +$ just --evaluate +just := "🤖 Just a command runner" +``` + Strings may contain line breaks: ```just From 84630710ca82d91820a5c14e3cdb3312e62b29b3 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 16 Sep 2024 10:47:07 +0700 Subject: [PATCH 2/3] Revise --- README.md | 38 ++++++++++++++++---------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 3e9d3a575c..31d1ba1fff 100644 --- a/README.md +++ b/README.md @@ -1259,35 +1259,29 @@ braces: Double-quoted strings support escape sequences: ```just -string-with-tab := "\t" -string-with-newline := "\n" -string-with-carriage-return := "\r" -string-with-double-quote := "\"" -string-with-slash := "\\" -string-with-no-newline := "\ -" +carriage-return := "\r" +double-quote := "\"" +newline := "\n" +no-newline := "\ +slash := "\\" +tab := "\t" +unicode-codepoint := "\u{1F916}" ``` ```sh $ just --evaluate -"tring-with-carriage-return := " -string-with-double-quote := """ -string-with-newline := " +"arriage-return := " +double-quote := """ +newline := " " -string-with-no-newline := "" -string-with-slash := "\" -string-with-tab := " " -``` - -Arbitrary characters can be escaped with `\u{X}` where `X` is up to six hex digitsmaster: -```just -just := "\u{1F916} Just a command runner" +no-newline := "" +slash := "\" +tab := " " +unicode-codepoint := "🤖" ``` -```sh -$ just --evaluate -just := "🤖 Just a command runner" -``` +The unicode character escape sequence `\u{…}`master accepts up to +six hex digits. Strings may contain line breaks: From fd7db4e39019479560f44c5d8e977c007331b00d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 16 Sep 2024 10:50:17 +0700 Subject: [PATCH 3/3] Revise --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 31d1ba1fff..eabca00274 100644 --- a/README.md +++ b/README.md @@ -1263,6 +1263,7 @@ carriage-return := "\r" double-quote := "\"" newline := "\n" no-newline := "\ +" slash := "\\" tab := "\t" unicode-codepoint := "\u{1F916}"