-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Add syntax highlighting for new Python 3.10 match/case syntax #120734
Comments
/extPython |
Hm, i was thinking that python hightlighting is vscode built-in...
ср, 7 апр. 2021 г., 21:36 VS Code Issue Triage Bot ***@***.***
…:
It looks like this is caused by the Python extension. Please file it with
the repository here <https://github.com/microsoft/vscode-python>. Make
sure to check their issue reporting template and provide them relevant
information such as the extension version you're using. See also our issue
reporting <https://aka.ms/vscodeissuereporting> guidelines for more
information.
Happy Coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#120734 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMGIFZW4OCQF3ZPOPYHYQLTTHRUXJANCNFSM42Q32HCA>
.
|
@SNvMK my mistake. Pinging @alexr00 who I think may own this area. |
Thanks for the ping! @SNvMK can you please provide a copy-pastable code snippet that illustrates the issue? |
Oh, hi again. Hm, yes, i can a = 'world'
match a:
case 'world':
print('Hello!')
case _:
print('I dont know you!') |
We get our grammar for syntax highlighting from https://github.com/MagicStack/MagicPython. It looks like the grammar doesn't try to tokenize match-case, so I've opened an issue in that repo to request it: MagicStack/MagicPython#235 |
So, in python 3.10, there is match/case syntax. Currently, it is just white words(for monokai). I'd like if you add highlight for this. Thanks
The text was updated successfully, but these errors were encountered: