Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Ligature "=>" isn't displayed correctly #62

Closed
pacmancoder opened this issue Dec 23, 2015 · 2 comments
Closed

Ligature "=>" isn't displayed correctly #62

pacmancoder opened this issue Dec 23, 2015 · 2 comments

Comments

@pacmancoder
Copy link

I found interesting font Fira Code with ligatures, but I found that ligature for operator "=>" is not displayed correctly. So, I tried to fix this. I was getting correct ligature if I changed 'match' for operators section form this:

# Operators
{
  'comment': 'Operator'
  'name': 'keyword.operator.rust'
  'match': '(\\+|-|/|\\*|=|<=|>=|\\^|&|\\||!|%|::|\\bas\\b|<<|>>|>|<)'
}

to this (added |=>| ):

# Operators (Good)
{
  'comment': 'Operator'
  'name': 'keyword.operator.rust'
  'match': '(\\+|-|/|\\*|=>|=|<=|>=|\\^|&|\\||!|%|::|\\bas\\b|<<|>>|>|<)'
}
Correct Incorrect
Correct Incorrect

So, is my fix correct?
(Sorry for my poor English)

@Victorystick
Copy link

It should be correct. It is however a duplicate of #59.

@pacmancoder
Copy link
Author

This should be fixed in #59

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants