Skip to content

bpython uses Python 2 lexer on Python 3 #222

@ikanobori

Description

@ikanobori

Syntax highlighting is slightly wrong on python 3 because bpython uses pygments Python 2 lexer.

Unicode variable names (like "año" or "naïve") which are allowed on python 3 are highlighted as invalid. Keyword "nonlocal" is ignored.

Attached is a patch to use pygment's python 3 lexer instead of python 2's if bpython is running on python 3.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions