ipython / ipython/ipython

Inconsistent Syntax Highlighting in F-Strings

Open
#10,567 1 comment 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

- Python 3.6.1
- IPython 6.0.0
- Anaconda: 4.3.1 64-bit
- OS: Windows 7 64-bit

When typing out f-strings, the python expressions including the { } are not differentiated clearly from the string (colour-wise) if the expression is something other than just the variable name. For example, `x + 10`, as opposed to just `x`, is in the same colour as the rest of the string.

![ipython](https://cloud.githubusercontent.com/assets/4192839/26152922/c261a55a-3b26-11e7-91cb-7e721e159df8.JPG)

Please let me know if you require any other information regarding my environment or other cases.

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.