tomlion / vim-solidity

Vim syntax file for solidity
MIT License
490 stars 321 forks source link

event indent mistake! #26

Open HuangChaoWH opened 6 years ago

HuangChaoWH commented 6 years ago

Before and After indent with gg=G

    event GameCreated(bytes32 indexed id, address indexed creator, string home,
        string away, uint16 indexed category, uint64 locktime);
    event BidPlaced(bytes32 indexed game_id, BookType book,
        address bidder, uint amount, bool home, int32 line);
    event GameCreated(bytes32 indexed id, address indexed creator, string home,
                      string away, uint16 indexed category, uint64 locktime);
                      event BidPlaced(bytes32 indexed game_id, BookType book,
                                      address bidder, uint amount, bool home, int32 line);

Any solution? Thank you!

sebastien-kr commented 6 years ago

Well, if you do not split arguments on two different lines there is no problem. The new event starting at the same place as the previous line makes sense.

HuangChaoWH commented 6 years ago

Thank you for your advice, but I prefer line not too long, and I noticed for other language such as C / C++, no such problem.