Skip to content

For some reason, -> is not working in Atom. #63

Description

@ioquatix

Any ideas what I'm doing wrong? '=>' is working fine.

Activity

  1. lbguilherme commented on Nov 2, 2015

    @lbguilherme

    Try with plaintext (without a syntax highlighter).
    Works fine for me.

  2. MadcapJake commented on Nov 5, 2015

    @MadcapJake

    Also works for me. Did you add:

    atom-text-editor {
      text-rendering: optimizeLegibility;
    }

    to your styles.less file?

  3. ioquatix commented on Nov 6, 2015

    @ioquatix
    Author

    Yes.

  4. MadcapJake commented on Nov 6, 2015

    @MadcapJake

    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.

  5. ioquatix commented on Nov 6, 2015

    @ioquatix
    Author

    @MadcapJake ah yeah it looks exactly like that.

  6. mamenama commented on Nov 6, 2015

    @mamenama

    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)

  7. ioquatix commented on Nov 6, 2015

    @ioquatix
    Author

    Awesome, I think I'll close this issue now since it's obviously not a problem with FiraCode but the Ruby syntax definition.

  8. pixelbreaker commented on Jul 23, 2017

    @pixelbreaker

    I found that => wasn't working with language-jsx package, then I discovered language-babel which is a much better package anyway, so just switched to that.

  9. kalifg commented on Feb 23, 2018

    @kalifg

    I can't seem to see any ligatures in php files, although I do see a limited set in javascript files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions