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#: Improved pattern matching #2411

merged 2 commits into from Jun 12, 2020


Copy link

In preparation for C# 9.0, I added support for more pattern matching.
Because of the extremely context-sensitive nature of the new pattern matching, a lot of the new features are crudely approximated. It's not ideal but the pattern matching grammar is so complex that I can't think of anything better.

Because switch statements and expression got a whole lot more complex, I also added a few new tests.

I make separate PRs for other new syntactic features of C# 9.0 after they get finalized.

@RunDevelopment RunDevelopment merged commit 7f341fc into PrismJS:master Jun 12, 2020
@RunDevelopment RunDevelopment deleted the cs-pattern-matching branch June 12, 2020 10:52
quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants