Skip to content

Syntax highlighting flaws #595

@tomx-sh

Description

@tomx-sh

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!

Metadata

Metadata

Assignees

Labels

status:readyThis issue is ready to be worked ontype:bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions