Skip to content

Error interpreting assembly assignment with whitespace between : and = #110

@echodrift

Description

@echodrift

When I try to parse a solidity file with assembly code, parser throw a ParseError:

ParserError: extraneous input '=' expecting {'from', '{', '}', '(', 'error', 'for', 'function', 'address', 'calldata', 'if', 'return', 'revert', 'byte', 'let', 'switch', 'callback', BooleanLiteral, DecimalNumber, HexNumber, HexLiteralFragment, 'break', 'continue', 'leave', 'payable', 'global', 'constructor', 'receive', Identifier, StringLiteralFragment}

But when I use solidity compiler to compile file, it is still compilable. Here is my source code example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions