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

Syntax highlighting works differently in the last curly brackets in f-strings #5877

Open
fedyakov opened this issue May 12, 2024 · 0 comments
Assignees
Labels
needs repro Issue has not been reproduced yet textmate bug

Comments

@fedyakov
Copy link

Environment data

  • Language Server version: 2024.5.1
  • OS and version: darwin arm64
  • python.analysis.indexing: true
  • python.analysis.typeCheckingMode: strict

Code Snippet

import datetime

d = datetime.date.today()
f"{d:%d} {d:%d} {d:%d}"

Expected behavior

All the format specifiers look the same.

Actual behavior

image
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Issue has not been reproduced yet textmate bug
Projects
None yet
Development

No branches or pull requests

3 participants