Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Pull in Latest from csharp-tmLanguage #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

say25
Copy link

@say25 say25 commented Dec 7, 2019

Requirements

Description of the Change

Pull in Latest from dotnet/csharp-tmLanguage

Alternate Designs

Benefits

Staying up to date with upstream grammar

Possible Drawbacks

There could be an upstream regression

Applicable Issues

@@ -1824,7 +1824,7 @@ repository:
}
]
"7":
name: "variable.other.cs"
name: "entity.name.variable.local.cs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I remember, we are currently not just keeping the grammar from upstream here, but also applying a few patches specific to GitHub C# code rendering engine. For example, this includes the following patch: e3a379f These name directives are used to determine which color to use for the highlighting. So we should test this grammar here https://github-lightshow.herokuapp.com/ to avoid regressions. E.g. in the grammar used by GitHub and Atom, we change a few name directives to enable the highlighting of method calls.

Copy link
Contributor

@worldbeater worldbeater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. if I pull the grammar as is and try using it in the GitHub code highlighting engine, I get a regression. Use the following link to test it. This is how it looks like now:

And this is how the C# grammar from the main branch of this repository looks like:

I suppose we should adjust the grammar from the upstream to avoid regressions.

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

Successfully merging this pull request may close these issues.

2 participants