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

vscode.python - Syntax coloring wrong for pattern matching keywords "match" and "case" #153602

Closed
RobbyCBennett opened this issue Jun 27, 2022 · 4 comments
Assignees
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@RobbyCBennett
Copy link
Contributor

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.68.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open python file
  2. Use pattern matching, such as the code block below
  3. The keywords are not colored appropriately
x = 1
match x:
    case 1:
        return x
    case 2:
        return x / 3
@connor4312 connor4312 removed their assignment Jun 27, 2022
@connor4312 connor4312 transferred this issue from microsoft/vscode Jun 27, 2022
@karthiknadig
Copy link
Member

@RobbyCBennett which language server are you using? look at python.languageServer setting. What is the version of python that you have selected?

@RobbyCBennett
Copy link
Contributor Author

I don't have any settings that start with python. I'm just using the builtin extension Python Language Basics.

@karthiknadig karthiknadig self-assigned this Jun 28, 2022
@karthiknadig karthiknadig added bug Issue identified by VS Code Team member as probable bug area-editor-* labels Jun 28, 2022
@karthiknadig
Copy link
Member

Moving this to VS Code since the Python Language Basics provides syntax highlighting using the text mate grammar.

@karthiknadig karthiknadig removed bug Issue identified by VS Code Team member as probable bug triage-needed area-editor-* labels Jun 28, 2022
@karthiknadig karthiknadig removed their assignment Jun 28, 2022
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jun 28, 2022
@aeschli aeschli assigned alexr00 and unassigned aeschli Jun 29, 2022
@alexr00
Copy link
Member

alexr00 commented Jun 29, 2022

Upstream issue: MagicStack/MagicPython#235

@alexr00 alexr00 closed this as completed Jun 29, 2022
@alexr00 alexr00 added grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream labels Jun 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

6 participants