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

Syntax highlighting flaws

Open tomx-sh opened this issue 1 year ago • 1 comments

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 as punctuation.parameters.end (some are)
  • some , characters are not recognized as punctuation.separator (some are)
  • in >=, the = character is not recognized as part of the keyword.operator.logic. (It is recognized as keyword.operator.assignment instead).

The following image illustrates this using my custom theme: solidity_synt

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!

tomx-sh avatar Sep 01 '24 23:09 tomx-sh