tonsky / tonsky/FiraCode

Misalignment in `ClassName<type>::Function`

Open
#1,684 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When coding in C++, I wrote something like ClassName<type>::Function, and the two colons aren't aligned properly :

Image

I suppose >: and :A are taken together.
A more correct behavior would be to consider :: as a token and to align both colons the same way.
The issue disappears if the first letter of the function is not a capital letter.

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

Start by reproducing the reported C++ example ClassName<type>::Function and compare it with a lowercase function name. Trace the font's programming-ligature handling for ::, >: and :A; done means both colons are aligned consistently in the affected case.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.