Skip to content

Commit b429f97

Browse files
RexJaeschkejskeet
authored andcommitted
add support for alternate interpolated verbatim strings
1 parent 36d4edf commit b429f97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

standard/expressions.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,11 @@ A *primary_expression* that consists of a *literal* ([§6.4.5](lexical-structure
13261326

13271327
### 12.8.3 Interpolated string expressions
13281328

1329-
An *interpolated_string_expression* consists of `$` or `$@` immediately followed by text within `"` characters. Within the quoted text there are zero or more ***interpolations*** delimited by `{` and `}` characters, each of which encloses an *expression* and optional formatting specifications.
1329+
<<<<<<< HEAD
1330+
An *interpolated_string_expression* consists of `$`, `$@`, or `@$`, immediately followed by text within `"` characters. Within the quoted text there are zero or more ***interpolations*** delimited by `{` and `}` characters, each of which encloses an *expression* and optional formatting specifications.
1331+
=======
1332+
An *interpolated_string_expression* consists of `$`, `$@`, or `@$`, immediately followed by text within `"` characters. Within the quoted text there are zero or more ***interpolations*** delimited by `{` and `}` characters, each of which encloses an *expression* and optional formatting specifications.
1333+
>>>>>>> 9ec9036 (add support for alternate interpolated verbatim strings)
13301334
13311335
Interpolated string expressions have two forms; regular (*interpolated_regular_string_expression*)
13321336
and verbatim (*interpolated_verbatim_string_expression*); which are lexically similar to, but differ semantically from, the two forms of string
@@ -1403,6 +1407,7 @@ verbatim_interpolation
14031407
14041408
Interpolated_Verbatim_String_Start
14051409
: '$@"'
1410+
| '@$"'
14061411
;
14071412
14081413
// the following three lexical rules are context sensitive, see details below

0 commit comments

Comments
 (0)