rust-analyzer: Wrong color of ? operator in face of hints

Not sure if anybody raised this before…

When chaining, and one of the parts ends with an ? operator, the hint’s color bleeds into the ?, like the following:

image

Don’t worry about the actual color (which is a faint grey) because I just set it this way.

In this example, the ? at the end of the chaining line should be colored regular, instead of as a hint.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I have a really old version of Fira Code, version 1.204. Let me install the latest version to check…

My suggestion is to add the JetBrains Mono font.

I find building the extension easier than installing fonts on Linux 😅.

Does this work?

image

It was removed in https://github.com/tonsky/FiraCode/blob/master/CHANGELOG.md#30-april-9-2020, I don’t know why I couldn’t find it before.

Strangely, I don’t see the same effect (though that :: looks so derpy):

image

I filed https://github.com/tonsky/FiraCode/issues/1140 just in case, but I think a space or ZWNJ will work. Even if it’s implemented, we should do that to support other fonts.

Sorry, I was thinking of https://github.com/tonsky/FiraCode/blob/master/extras/stylistic_sets.png, but there seems to be no alternative for that one.

Does it still happen if you disable ligatures? Or at least the ?: one, which doesn’t make sense as Rust syntax.