Skip to content

Commit 2137e14

Browse files
authored
Merge pull request #4 from sc-forks/interpolation-two
Allow interpolation in assignment statements
2 parents 6e97f74 + 4a9c3d0 commit 2137e14

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

solidity.pegjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ LeftHandSideExpression
692692
= DeclarativeExpression
693693
/ CallExpression
694694
/ NewExpression
695+
/ Interpolation
695696

696697
Type
697698
= literal:(Mapping / Identifier) members:("." Identifier)* parts:(__"[" __ (Expression)? __ "]")*

test/doc_examples.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,5 @@ contract Ballot {
399399
contract GnosisInterpolations {
400400
uint constant x = 2;
401401
EventFactory constant eventFactory = EventFactory({{EventFactory}});
402+
address constant marketMaker = {{LMSRMarketMaker}};
402403
}

0 commit comments

Comments
 (0)