tonsky / tonsky/FiraCode

Ligature priority in `->->`

Open
#1,562 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

conflict
Dominant language
Clojure
Stars
82k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

->-> (nested functions in CoffeeScript and Civet) seems to prefer rendering as

image

instead of what I expected, which you'd get from greedy matching:

imageimage

I don't know much about ligatures, but I'm guessing they can be assigned a weight to give them priorities. Perhaps equal priority would fix this issue? I'm not sure if there's a fix that doesn't break any use-cases, but I also can't imagine that ->-> would make sense with a >-> ligature. Alternatively, I could remove the >-> ligature for my use-case.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Reproduce ->-> using the examples in the report and compare the current rendering with the expected greedy rendering; done means the intended rendering works without breaking existing ligature use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.