Repository navigation
For some reason, -> is not working in Atom. #63
Description
Activity
Try with plaintext (without a syntax highlighter).
Works fine for me.Also works for me. Did you add:
atom-text-editor { text-rendering: optimizeLegibility; }
to your
styles.lessfile?Yes.
Ok, while working on some language grammars, I discovered something that might be at the root of your problem: the ligatures only capture if the underlying html span element contains both characters to be ligaturized. Some language grammars fail to fully capture multi-char operators instead choosing to allow a big list of operator characters to capture them. This means that, to the editor, it's actually a
-operator next to a>operator (in whatever language you are using). So, to determine if this is the issue, try another language file (maybe even a few), try just an empty plain text file, or try other ligatures (especially ones with characters that aren't operators). If that is the issue, then there is nothing that this project can do and you need to post an issue in the language's atom syntax highlighter repo.@MadcapJake ah yeah it looks exactly like that.
I added a commit to PR atom/language-ruby#113 which will address this issue (for Ruby at least). If there are other languages which need it, let me know and I can try to add it to them too (though I must admit I'm mostly familiar with Ruby grammar)
Awesome, I think I'll close this issue now since it's obviously not a problem with FiraCode but the Ruby syntax definition.
I found that
=>wasn't working withlanguage-jsxpackage, then I discoveredlanguage-babelwhich is a much better package anyway, so just switched to that.Reacted by Vittorio RetriviI can't seem to see any ligatures in php files, although I do see a limited set in javascript files
Any ideas what I'm doing wrong? '=>' is working fine.