diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-05 07:25:31 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-05 23:53:49 +0800 |
commit | a91393f4d74352be022b9a83fc3007881f770ed7 (patch) | |
tree | 991c578177a7e762fa88491b438eaa5a08017eda /libsolidity/inlineasm | |
parent | 35095e9fcc53f76a1c73251497c265f399a9896c (diff) | |
download | dexon-solidity-a91393f4d74352be022b9a83fc3007881f770ed7.tar.gz dexon-solidity-a91393f4d74352be022b9a83fc3007881f770ed7.tar.zst dexon-solidity-a91393f4d74352be022b9a83fc3007881f770ed7.zip |
Support some restricted tokens (return, byte, address) as identifiers in Julia
Diffstat (limited to 'libsolidity/inlineasm')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 273e1d5c..9336e620 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -566,10 +566,16 @@ string Parser::expectAsmIdentifier() string name = currentLiteral(); if (m_julia) { - if (currentToken() == Token::Bool) + switch (currentToken()) { + case Token::Return: + case Token::Byte: + case Token::Address: + case Token::Bool: advance(); return name; + default: + break; } } else if (instructions().count(name)) |