Sublime Forum

Some Fira Code ligatures not working in Clojure syntax

#1

I’ve been using Fira Code font with ligatures since they became supported in Sublime.

In Clojure syntax, the ligature for ->> (double headed arrow) when inside brackets, e.g. (->> foo) expands to a single arrow plus an additional > character. When in Plain text syntax it works as expected.

Example in Clojure syntax (wrong):

If I switch to plain text, the arrow renders as expected. (I would show an image, but you only allow one per post).

I’m using the latest build 3156 on Debian Linux with Fira Code v1.204.

0 Likes

#2

This is the correctly rendered arrow in plain text mode:

0 Likes

#3

This means the Clojure syntax is splitting the operator into multiple tokens by assigning different scopes to the -> and the subsequent >. I believe there is a PR with a significant reworking of the Clojure syntax in the Packages repo, so it might be worth checking that out to see if it is fixed there.

0 Likes

#4

You can find the pull request Will was talking about here:

https://github.com/sublimehq/Packages/pull/1259

0 Likes

#5

Trying it out now. This does indeed solve my problem. I’ll try using it for a bit and report any problems.

0 Likes

#6

If you find any problems, please report them in that pull request.

0 Likes