2 ms·
> No, I do not want >> parsed as a right shift when it's actually used as two adjacent template delimiters. I don't like ligatures either, but I think that thi
by vladvasiliu 3y ago
> No, I do not want >> parsed as a right shift when it's actually used as two adjacent template delimiters.
I don't like ligatures either, but I think that this depends on the editor. For example, if typing Rust in IntelliJ, if you type `Box<Box<String>>`, it will show two regular ">" characters. But if you type `x >= 3`, it will replace it with a single glyph.
https://ibb.co/Dzx0LFG https://ibb.co/Dzx0LFG
- deleted 3y ago[deleted]
- mort96 3y agoHow about 'x >> 3'? I would be very surprised if the editor enabled and disabled ligatures in sections of code based on information from a proper parser...
- vladvasiliu 3y agoI don't think it actually does anything useful with >> I've tried both Fira Mono and Jetbrains Mono, it seems to barely get the two glyphs closers. Below are screen captures of Jetbrains Mono. With ligatures: https://ibb.co/vQ3nCsd https://ibb.co/vQ3nCsd without ligatures: https://ibb.co/DtD1P9X https://ibb.co/DtD1P9X But, to your point, it would seem it doesn't enable ligatures based on the parser, since there is a difference between ligatures active and disabled, and it applies on both lines.