hardhat-vscode
hardhat-vscode copied to clipboard
Syntax highlighting flaws
Hi,
Solidity syntax highlighting seems a bit flawed on VSCode. Using cmd+shift+P>Developer: Inspect Editor Tokens and Scopes, you can verify that:
- some
)characters are not recognized aspunctuation.parameters.end(some are) - some
,characters are not recognized aspunctuation.separator(some are) - in
>=, the=character is not recognized as part of thekeyword.operator.logic. (It is recognized askeyword.operator.assignmentinstead).
The following image illustrates this using my custom theme:
If you give me some quick directives, I may be able to help fixing this (my experience with ANTLR V4 lexer and parser systems might come useful). I'd be happy to!