tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
76.17k stars 3.08k forks source link

Strange behavior with <<= #285

Closed jbilcke closed 7 years ago

jbilcke commented 7 years ago

Hi,

I don't know if this is related to Atom or FiraCode (please tell me if I'm wrong so I can submit an issue someplace else), but <<= renders differently when on a normal line or a comment line:

screen shot 2016-10-10 at 12 20 51

(note that I disabled ligatures on purpose on strings, to show the original)

My guess is that the <<= pattern is mostly used in DSL-friendly languages such as Scala, so maybe it should always show as the double spike arrow?

(I believe the alternative < ≤ isn't used by other programming languages, as it doesn't make much sense)

tonsky commented 7 years ago

It’s Atom’s problem with how it splits sequences into tokens (often incorrectly). Try changing your syntax to plain text (no tokenization) and you’ll see everything is fine with the font. Fix there might be a PR to language grammar you use, with correct tokenization.