ipython / ipython/ipython

Incorrect syntax highlighting for f-strings directly containing set or dict literals

Open
#14,115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
4.5k
Avg merge
1d 2h
Merged PRs (30d)
6

Description

IPython 8.11.0

To reproduce, type `f"{{1: 2}}"` or `f"{{1}}"`. The `1: 2` and `1` are colored the same as the string literal.

![image](https://github.com/ipython/ipython/assets/48802534/df82c5b5-c886-4185-878a-0f5a28097c4a)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.