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

Grammar could support the walrus operator #204

Open
alexr00 opened this issue Apr 14, 2020 · 0 comments
Open

Grammar could support the walrus operator #204

alexr00 opened this issue Apr 14, 2020 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Apr 14, 2020

From @BornForFever in microsoft/vscode#94999

The walrus operator :=(an operator to allow you to make assignments in an expression, see PEP 572) is highlighted as 2 different colors. And I tried inspecting tokens and scopes, and found that : and = were treated as 2 tokens.

  • Editor name and version: VS Code 1.44
  • Platform: any
  • Color scheme: Well illustrated with Atom One Darker
  • MagicPython version: commit 0b09c1f
  • A sreenshot: 批注 2020-04-11 222317
    批注 2020-04-11 222406
  • 5-10 lines of surrounding code:
if m := x 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant