mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Expect end of string at end of top-level block for assembly parser.
This commit is contained in:
@@ -926,7 +926,7 @@ ASTPointer<InlineAssembly> Parser::parseInlineAssembly(ASTPointer<ASTString> con
|
||||
}
|
||||
|
||||
assembly::Parser asmParser(m_errorReporter);
|
||||
shared_ptr<assembly::Block> block = asmParser.parse(m_scanner);
|
||||
shared_ptr<assembly::Block> block = asmParser.parse(m_scanner, true);
|
||||
nodeFactory.markEndPosition();
|
||||
return nodeFactory.createNode<InlineAssembly>(_docString, block);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user