-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong color of ? operator in face of hints #6235
Comments
Does it still happen if you disable ligatures? Or at least the ?: one, which doesn't make sense as Rust syntax. |
You're right! The problem is font ligatures! I use Fira Code Retina. Not sure whether I can selectively disable I suggest maybe putting a space in front of |
I think you can, the Fira Code readme describes how each of them is called. |
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. |
Putting a space in front of the colon (or omit it completely if the colors are different enough from text) is a possible solution... I am not sure how many different ligatures end with |
I filed tonsky/FiraCode#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. |
That's weird... perhaps you're using a font without |
No, it's Fira Code 5.2. Maybe it was removed at some point? I couldn't find any reference to it in the changelog. |
I have a really old version of Fira Code, version 1.204. Let me install the latest version to check... |
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. |
OK, confirmed. The latest version of Fira Code no longer has this problem! Good catch!!! Unfortunately, |
Can you test #6236? |
Hhhmmm... don't know how to install a custom build of ra... I just load it from the the official extensions. My suggestion is to add the
|
That's why you're DA MAN!
Your picture looks just fine! |
Just for future reference, |
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: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.The text was updated successfully, but these errors were encountered: