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
Rewrites the Type rule to allow spaces before its array parts.
Adds some examples of liberally spaced array declarations to doc_examples.sol
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.
Solidity-parser currently throws an error if there are intervening spaces between a Type name and its array brackets. Ex:
This PR
doc_examples.sol
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.