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
Ligatures in Rust Attributes #1
Comments
I wonder what's the best way to achieve this. I suppose the target would be to still have other ligatures working still, correct? I wonder if that means that we'll have to disable this ligature altogether. @okonet What's the use case for this specific ligature? Do you see value in having it included? |
Not really. I think we can drop it easily. |
The custom behavior could be configured by the user using stylistic sets like FiraCode does: I personally like this However, it would be nice to align the open and close brackets: |
Thanks for pointing it out! |
I think aligning all brackets and sacrifice the alignment in ligatures should be fine. |
We can also tackle this in stylistic set. See https://github.com/MonoLisaFont/font/issues/1 |
I think #50 is related to this. Since we're talking about Rust-related group of characters, I suppose a good thing to do would be to handle characters like Can someone that's using Rust comment on the issue regarding which characters should have ligatures there? I am primarily interested in how a stylistic set should be implemented for it and what the ideal experience for the language should be like. |
@bebraw Is there a comprehensive list regarding Rust Attributes? |
@mitsuhiko Are there specific ligatures that should be added to improve the UX with Rust? How can we make the typeface better for Rust users? As mentioned above, one option is that we'll provide a Rust specific stylistic set that's specifically designed for the language. I know at least VS Code lets you enable it specifically for Rust. |
Hello! Hoping there's still some interest related to Rust-specific features. There's a complete list of operators in use on the official documentation which may be useful: https://doc.rust-lang.org/book/appendix-02-operators.html In regards to #50: I've never seen Something else that I noticed in the playground is that Beyond that, everything I've seen so far feels like it fits very well for Rust! |
There's a prerelease containing Rust specific ligatures available now. These might have to go behind a specific stylistic set in case they are too specific for other languages. |
Included in 2.012. The exact ligatures added are +=, -=, *=, %=, &=, &^, and &^=. |
Rust uses attributes to add meta information to functions, structs etc. These can be declared in two ways:
#[meta]
attach to the next item or#![meta]
to the previous.Example:
Looks like:
I would prefer if the first ligature was not a thing.
The text was updated successfully, but these errors were encountered: