-
Notifications
You must be signed in to change notification settings - Fork 302
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
Negative arguments for C++ non-type template parameters interact badly with left-arrow ligatures #107
Comments
Hi @chiphogg . I'm looking for solution right now. How many digits you think can be in |
In my use cases, it's only ever been single-digit numbers. I'm sure that would cover the majority of use cases, although I see no reason it couldn't be more. (If it helps motivate my request, the context is in strongly-typed unit systems, and the non-type template parameters refer to the exponents for fundamental dimensioned quantities. So, for example, a strongly-typed "acceleration" type would have something like |
Looks like a made exclusion in the wrong ligature. )) |
Should be correct now. |
I came to report a similar issue in TypeScript generic types. While it isn't specifically about the There are ligatures for However, I also tried the repro for this report and it doesn't appear to be fixed in the version shipped with WebStorm 2022.2.1. Could it be a regression? |
For example,
The
<-
renders as an arrow. It just looks wrong.Never mind how realistic this example may or may not be. 🙂 I actually encounter non-type template parameters routinely in my codebase.
Perhaps the ligature could be disabled if the
<-
is followed by digits and/or a.
, with a,
or>
afterwards? I don't have any idea how ligature disabling works, but I've noticed that it happens if, e.g., I keep typing multiple###...
or///...
.The text was updated successfully, but these errors were encountered: