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

Syntax highlighting for parenthesis if off

Open jo-es opened this issue 4 years ago • 3 comments

Hey, I just updated the extension to the latest version and noticed that some highlighting around the function header is off.

v0.0.120 Screen Shot 2021-10-12 at 16 36 32

v0.0.132 Screen Shot 2021-10-12 at 16 27 28

using the latest (0.8.9) solidity compiler.

jo-es avatar Oct 12 '21 14:10 jo-es

hi @jo-es !

Yes i can see the the syntax highlighting on the first parenthesis not being perfect. Can you pass me your theme to check it out?

Thanks!

juanfranblanco avatar Oct 12 '21 17:10 juanfranblanco

Hey @juanfranblanco, I'm using this theme atm. It also impacts the parenthesis of the returns statement.

Thanks!

jo-es avatar Oct 12 '21 22:10 jo-es

I'm seeing the same thing. It looks like it was introduced in 0.0.122. Closing parenthesis on function declarations and return values are not being recognized as punctuation.parameters.end and opening parenthesis are not getting recognized as punctuation.parameters.begin in some places too, like emit MyEvent(data).

palmsey avatar Nov 10 '21 15:11 palmsey