Fixes Natspec parser error when whitespace is missing.

This commit is contained in:
Erik Kundt
2019-05-10 10:53:32 +02:00
parent 661b08e16c
commit 656364d967
3 changed files with 33 additions and 3 deletions
@@ -0,0 +1,11 @@
contract C {
/**
* @dev a function
* @param _from 5 from address
* @param _5to : to address
* @param value: token transfer amount
* @param value? token transfer amount
*/
function f(address _from, address _5to, uint256 value) internal {
}
}
@@ -0,0 +1,11 @@
contract C {
/**
* @param 5value a value parameter
* @param _ a value parameter
*/
function f(uint256 _5value, uint256 _value, uint256 value) internal {
}
}
// ----
// DocstringParsingError: Documented parameter "" not found in the parameter list of the function.
// DocstringParsingError: Documented parameter "_" not found in the parameter list of the function.