ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
138 stars 54 forks source link

Allow spaces before array index at Type rule. #62

Closed cgewecke closed 7 years ago

cgewecke commented 7 years ago

Solidity-parser currently throws an error if there are intervening spaces between a Type name and its array brackets. Ex:

uint[] x;  // <-- Fine
uint [] x; // <-- Legal but errors 

This PR

NB: The code in this PR was authored by @duaraghav8 as part of solparse. He has given permission to integrate his bug-fixes into this repo so that solidity parser efforts can be consolidated in one place.

federicobond commented 7 years ago

@cgewecke careful with the additional merge commit that slipped there.

federicobond commented 7 years ago

LGTM