Ligature request: Swift \(
In Swift, \( is used for string interpolation:
var name = "Tim McGraw"
"Your name is \(name)"
(source)
Could a ligature be added for this?
Sure! Do you have ideas how it might look like?
The backslash and the opening parenthesis could be squished together so that the end of the slash merges with the tip of the parenthesis, something like:

This would conflict with regexps
As I have frequently said, a "escape for literal open bracket" is a single character in my mind, so no conflict imho
Get Outlook for Androidhttps://aka.ms/ghei36
From: Alexey Ten [email protected] Sent: Wednesday, December 30, 2020 6:37:35 PM To: tonsky/FiraCode [email protected] Cc: Subscribed [email protected] Subject: Re: [tonsky/FiraCode] Ligature request: Swift ( (#1179)
This would conflict with regexps
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftonsky%2FFiraCode%2Fissues%2F1179%23issuecomment-752701175&data=04%7C01%7C%7Ca1c59d95938949ac0cfb08d8ace9984c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637449466562953413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PC2nNEp9S9NxmCw4Z5nVLiDpghDhZRz2SLItsRmhasQ%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMRJI3AX4NQ3B7JT7KLF2FTSXNQN7ANCNFSM4VOPLDFA&data=04%7C01%7C%7Ca1c59d95938949ac0cfb08d8ace9984c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637449466562953413%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=g0ovzqiTrxBxlkmlLdiwZ7LRz8M5wVD6WxyPkRCAv6E%3D&reserved=0.
In LaTeX, \( ... \) is used for the inline math environment. Hence, if \( gets added, I would expect a similar ligature for \) as well, so that it looks symmetric.
Agreed. Heck, why not \[ and \] have their own ligatures, too? And a whole set of ligatures for regex e.g. (?=, etc (I suck at memorizing regex lookbehind/ahead so correct me if I'm wrong :sweat_smile:).
This would conflict with regexps
Would it be better if these two symbols just get closer but not connected?