Skip to content

Conversation

@rpadaki
Copy link
Contributor

@rpadaki rpadaki commented May 17, 2022

It's really been bothering me that the ! is not highlighted as a logical operator -- this can be seen in cases like !=, and looks especially odd when ligatures are enabled. This PR fixes things. Note that I explicitly add both != and ! to the matcher, so that != is interpreted as a logical token instead of a logical ! followed by an assignment =.

Is there a specific reason I'm missing why ! is not currently included, or was it just an oversight?

I opened up this PR at contractshark/vscode-solidity-extension#9, but I thought it would be useful here as well.

@juanfranblanco
Copy link
Owner

Hi @rpadaki thanks for this, it was mainly an oversight.

@juanfranblanco juanfranblanco merged commit d51276b into juanfranblanco:master May 18, 2022
@rpadaki rpadaki deleted the fix-not-highlighting branch May 18, 2022 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants