You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`#!sds \{`| Opening curly brace (used for [template strings](#template-strings)) |
36
-
|`#!sds \\`| Backslash |
37
-
|`#!sds \uXXXX`| Unicode character, where `XXXX` is its hexadecimal code |
26
+
|`\b`| Backspace |
27
+
|`\f`| Form feed |
28
+
|`\n`| New line |
29
+
|`\r`| Carriage return |
30
+
|`\t`| Tab |
31
+
|`\v`| Vertical tab |
32
+
|`\0`| Null character |
33
+
|`\'`| Single quote |
34
+
|`\"`| Double quote |
35
+
|`\{`| Opening curly brace (used for [template strings](#template-strings)) |
36
+
|`\\`| Backslash |
37
+
|`\uXXXX`| Unicode character, where `XXXX` is its hexadecimal code |
38
38
39
39
String literals can contain also contain raw line breaks:
40
40
@@ -136,7 +136,7 @@ nullableExpression ?: 42
136
136
137
137
The syntax for template strings is similar to [string literals](#string-literals): They are also delimited by double quotes, the text can contain escape sequences, and raw newlines can be inserted. The additional syntax are _template expressions_, which are any expression enclosed by `#!sds {{` and `#!sds }}`. There must be no space between the curly braces.
138
138
139
-
These template expressions are evaluated, converted to a string and inserted into the template string at their position. The template string in the example above is, hence, equivalent to the [string literal](#string-literals) "1 + 2 = 3".
139
+
These template expressions are evaluated, converted to a string and inserted into the template string at their position. The template string in the example above is, hence, equivalent to the [string literal](#string-literals)`#!sds "1 + 2 = 3"`.
0 commit comments