-
Notifications
You must be signed in to change notification settings - Fork 34
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
Allow operators in constant pattern #280
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wise0704!
@wise0704 are these related to https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/pattern-matching? see if (day is DayOfWeek.Monday or DayOfWeek.Wednesday) { } |
@kasperk81 Where are you seeing |
@JoeRobich i was using vscode and github. github has three months cycle, so their next release will capture the changes on dec 12 that were made here after sep 19 (their last release): github-linguist/linguist#6627. i'm not sure about vscode's cadence. |
@kasperk81 For GitHub highlighting, you may also want to check with https://github.com/tree-sitter/tree-sitter-c-sharp as I know they are moving more languages away from the textmate grammars. This test in particular makes me wonder if it is supported. |
👋 from Linguist. I can confirm we do indeed use the tree-sitter grammar on GitHub.com as shown the this line in the vendor/README.md file for highlighting C# files. We do however still ship this grammar with Linguist for other languages which might reference the
These are likely to all be because the grammar compiler enforces PCRE rules because the old highlighting engine that uses this grammar uses PCRE for performance reasons. Feel free to ignore these and I'll keep tracking them as I do all the others in github-linguist/linguist#3924 |
@damieng would know better but it does seem to recognize assuming linguist update on dec 12 will take the latest tree-sitter-csharp i will just wait. thanks for the info! :) |
Linguist updates don't influence the treesitter grammar updates. They happen at their own cadence performed by the team that owns the highlighting service. |
thanks @lildude. i can then only hope that it won't take long before they update the service. (unless someone can poke them) ;) |
another one I missed