3

I am using R in Sublime Text with Fira Code, and would like to display the new native Pipe |> as a triangle ligature.

This works well with most syntaxes, but not in the R syntax, where it actually matters:

enter image description here

enter image description here

Any idea what I could do?

MattDMo
  • 100,794
  • 21
  • 241
  • 231
chris
  • 1,312
  • 13
  • 16
  • Are you using the builtin R syntax, or a plugin's, such as R-Box or R-IDE? – MattDMo Nov 02 '21 at 13:44
  • I am using the built-in syntax. – chris Nov 02 '21 at 22:26
  • 2
    In that case this is an issue with the R syntax definition; symbols are passed for rendering based on how the syntax groups them together when it's matching, so the rules it's currently using are not grouping the characters together. To fix it open an issue in the tracker. Note however that ST3 is no longer going to receive updates and the syntax engine in ST4 is enhanced so if the problem is resolved there's a high liklyhood that it won't work in ST3. – OdatNurd Nov 03 '21 at 13:29
  • 1
    Thanks! I am using ST4, and don't care about ST3. I opened an issue as suggested: https://github.com/sublimehq/Packages/issues/3119 – chris Nov 03 '21 at 13:45

1 Answers1

1

As this also came up yesterday on Twitter in this tweet with the follow-up a few hours later in this tweet pointing to a pending PR and this compelling picture:

enter image description here

which I am just posting to bring closure here.

Signed, someone who locally compiled Emacs a while back to get a newer version for ligatures onto his workstation / into his distro :) Loving it too.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725