1
1
mirror of https://github.com/casey/just.git synced 2024-11-23 02:44:56 +03:00

Add multiline raw string example to readme (#109)

This commit is contained in:
Casey Rodarmor 2016-11-13 14:21:34 -08:00 committed by GitHub
parent 1e7a0fa63b
commit 3d7888708c

View File

@ -173,15 +173,31 @@ string-with-slash = "\"
string-with-tab = " "
```
Single-quoted strings do not support any escape sequences:
Single-quoted strings do not recognize escape sequences and may contain line breaks:
```make
raw-string = '\t\n\r\"\\'
escapes = '\t\n\r\"\\'
line-breaks = 'hello
this
is
a
raw
string!
'
```
```sh
$ just --evaluate
raw-string = "\t\n\r\"\\"
escapes = "\t\n\r\"\\"
line-breaks = "hello
this
is
a
raw
string!
"
```
Recipes may have parameters. Here recipe `build` has a parameter called `target`: