mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support period as part of identifiers for Yul and Inline Assembly.
This commit is contained in:
@@ -38,6 +38,10 @@ using namespace yul;
|
||||
shared_ptr<Block> Parser::parse(std::shared_ptr<Scanner> const& _scanner, bool _reuseScanner)
|
||||
{
|
||||
m_recursionDepth = 0;
|
||||
|
||||
_scanner->supportPeriodInIdentifier(true);
|
||||
ScopeGuard resetScanner([&]{ _scanner->supportPeriodInIdentifier(false); });
|
||||
|
||||
try
|
||||
{
|
||||
m_scanner = _scanner;
|
||||
@@ -50,6 +54,7 @@ shared_ptr<Block> Parser::parse(std::shared_ptr<Scanner> const& _scanner, bool _
|
||||
{
|
||||
solAssert(!m_errorReporter.errors().empty(), "Fatal error detected, but no error is reported.");
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user