Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# operator and punctuation changes #1532

Merged
merged 2 commits into from
Dec 1, 2018

Conversation

RunDevelopment
Copy link
Member

This PR solves the issue of C# breaking ligature fonts with the => operator. => is now an operator.

There are also some other changes.

  1. ? and : are now all included by punctuation.
    Because : cannot be included in operator (because it is also used for inheritance) the ? shouldn't be an operator either.
  2. ?? and ?. were added to punctuation.
    They weren't explicitly supported before.
  3. An operator-test was added.

@mAAdhaTTah mAAdhaTTah merged commit 3b1e091 into PrismJS:master Dec 1, 2018
@RunDevelopment RunDevelopment deleted the csharp-operator branch December 1, 2018 20:40
RunDevelopment added a commit to RunDevelopment/prism that referenced this pull request Dec 1, 2018
ggrossetie pushed a commit to ggrossetie/prism that referenced this pull request Mar 11, 2019
Solve the issue of [C# breaking ligature fonts with the `=>` operator](PrismJS#1133 (comment)). `=>` is now an operator.

There are also some other changes.

1. `?` and `:` are now all included by `punctuation`.
    Because `:` cannot be included in `operator` (because it is also used for inheritance)
the `?` shouldn't be an `operator` either.
2.  `??` and `?.` were added to `punctuation`.
    They weren't explicitly supported before.
3. An operator-test was added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants