Skip to content

Commit

Permalink
Document \u{...} (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
laniakea64 authored Sep 16, 2024
1 parent d2c66e9 commit a440a6a
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1259,26 +1259,31 @@ 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 := " "
no-newline := ""
slash := "\"
tab := " "
unicode-codepoint := "🤖"
```

The unicode character escape sequence `\u{…}`<sup>master</sup> accepts up to
six hex digits.

Strings may contain line breaks:

```just
Expand Down

0 comments on commit a440a6a

Please sign in to comment.