Skip to content

Commit 2647ab6

Browse files
committed
unified: Add string interpolation expression
1 parent eb3ddb8 commit 2647ab6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎unified/extractor/ast_types.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ supertypes:
88
- boolean_literal
99
- string_literal
1010
- regex_literal
11+
- string_interpolation_expr
1112
- builtin_expr
1213
- binary_expr
1314
- unary_expr
@@ -129,6 +130,11 @@ named:
129130
# A regex literal
130131
regex_literal:
131132

133+
# A string interpolation expression. Constant parts are stored as string literals.
134+
string_interpolation_expr:
135+
modifier*: modifier
136+
element*: expr
137+
132138
# Application of a binary operator, such as `a + b`
133139
binary_expr:
134140
left: expr

0 commit comments

Comments
 (0)