vscode-solidity icon indicating copy to clipboard operation
vscode-solidity copied to clipboard

@return is not styled properly if there are multiple return statements

Open fulldecent opened this issue 4 years ago • 3 comments

Test case:

Screen Shot 2021-05-14 at 11 02 47

The c and d should be highlighted.

fulldecent avatar May 14 '21 15:05 fulldecent

https://github.com/juanfranblanco/vscode-solidity/blob/master/syntaxes/solidity.json#L110-L124

This may need to match the regex for params

juanfranblanco avatar May 14 '21 15:05 juanfranblanco

It's a little more complicated. The @return only gets a name parameter if the return value has a name in the returns(...)block.

This is distinct from @param where it always has a name.

fulldecent avatar May 14 '21 18:05 fulldecent

Yeah, so I guess there is not a simple true way to do this, as you may have also anonymous return parameters. Ill mark it as help wanted as it is not a big priority.

juanfranblanco avatar May 15 '21 08:05 juanfranblanco