language-javascript-jsx
language-javascript-jsx copied to clipboard
Fira Code ligatures (and maybe others ligatures too?) broken
this is Plain Text
this is JavaScript with JSX
As u can see most ligatures are broken... Also the fat arrow ligature seems not broken in my example but when you use it in real code:
:cry:
I would also like to see this fixed :)
I've encountered this as well using Haskelig. I've tracked the issue down to how the grammar is tokenizing these specific multi-character operators. A similar issue is described in atom/language-javascript/issues/252. For comparison, here is how the operator is being tokenized by language-javascript-jsx:
Instead of being keyword operator assignment js
and keyword operator relational js
they should both be tokenized together as storage type function arrow js
, which is what language-javascript currently does:
As a workaround, I installed the package https://atom.io/packages/language-babel which had the least amount of tokenization issue between the three (language-javascript-jsx, language-javascript and language-babel)