itemisCREATE / solidity-ide

Solidity plugin for Eclipse
Eclipse Public License 1.0
86 stars 25 forks source link

Auto-indent is not working properly for multiline functioncalls inside assembly blocks #297

Closed Mazesch closed 5 years ago

Mazesch commented 5 years ago

The following code should already be formatted correctly(atleast the multiline function-call) according to the Solidity Style Guide but the auto-indent messes it up:

pragma solidity ^0.5.4;
contract Contract {

    function f(address _addr) public view returns (bytes memory o_code) {
        assembly {
            let size := extcodesize(_addr)
            o_code := mload(0x40)
            extcodecopy(
                _addr,
                add(o_code, 0x20),
                0,
                size
            )
        }
    }
}