Skip to content

Inconsistent Syntax Highlighting in F-Strings #10567

Open

Description

@navneethc
  • 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

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

Activity

  1. Carreau commented on May 23, 2017

    @Carreau
    Member

    That's up to Pygments. We don't do anything smart about that, we completely defer to pygments. Maybe with next Pygments release that will be fixed.

  2. added this to the not ipython milestone on May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions