tonsky / FiraCode

Free monospaced font with programming ligatures
SIL Open Font License 1.1
77.32k stars 3.1k forks source link

/=/ and \=/ #1022

Closed asimenio-asteri closed 3 years ago

asimenio-asteri commented 4 years ago

I am a programmer and a chemistry. I use SMILES and I would like these ligatures. sidenote: /=/ is trans and \=/ cis. It is okay if you do not add these, they aren't really programming/maybe they conflict

tonsky commented 4 years ago

/=/ would be a problem in regexps. I’ll think about \=/. Thanks!

asimenio-asteri commented 4 years ago

thank you agin!

RubenVerg commented 4 years ago

Well, IK i am against most people's thoughts here, but a) A regex which searches for '=' is actually a single token in my mind b) Editors like VSCode (and all tmLanguage-based ones, AFAIK) separate in tokens, and two different tokens can't ligate. In most langauges, regexes are matched with

regex:
  name: constant.regexp.language
  begin: /
  end: (?<!\)/
  captures:
    0:
      name: operator.regexp.language

or similarly with a before/end which tokenizes begin, end and the things between as three different tokens.

asimenio-asteri commented 4 years ago

if it would be a problem w/ regexp, it could be a stylistic set?

tonsky commented 4 years ago

There’re only 20 stylistic sets, and I would like to spend them on stuff that many people disagree about. I don’t have them all planned out, but that’s the idea. More votes → more chances for a stylistic set

asimenio-asteri commented 4 years ago

so there will be a maximum of 20? if so, i don't think this should be one of them then

RubenVerg commented 4 years ago

wait, there are 20 ss + 20 character variations, right?

tonsky commented 4 years ago

There are 100 character variations, but they usually alter single characters :)

RubenVerg commented 4 years ago

yes, what i meant is that by using cvs you free up a lot of ss.