File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,9 @@ IdentifierName "identifier"
171
171
};
172
172
}
173
173
174
+ Interpolation
175
+ = "{{" __ name :IdentifierName __ "}}" { return name; }
176
+
174
177
IdentifierStart
175
178
= UnicodeLetter
176
179
/ "$"
@@ -660,6 +663,9 @@ Arguments
660
663
/ "(" __ "{" __ args :(NameValueList (__ "," )? )? __ "}" __ ")" {
661
664
return optionalList (extractOptional (args, 0 ));
662
665
}
666
+ / "(" __ args :Interpolation __ ")" {
667
+ return [args];
668
+ }
663
669
664
670
ArgumentList
665
671
= head :AssignmentExpression tail :(__ "," __ AssignmentExpression )* {
Original file line number Diff line number Diff line change @@ -395,3 +395,8 @@ contract Ballot {
395
395
voted: true ,
396
396
});
397
397
}
398
+
399
+ contract GnosisInterpolations {
400
+ uint constant x = 2 ;
401
+ EventFactory constant eventFactory = EventFactory ({{EventFactory}});
402
+ }
You can’t perform that action at this time.
0 commit comments