Python: improve numbers, add octals, binaries and "breakpoint" keyword

Authored by nibags on Dec 12 2019, 3:53 AM.

Description

Python: improve numbers, add octals, binaries and "breakpoint" keyword

Summary:
BUG: 414996
FIXED-IN: 5.66.0

Changes:

  • Improve number detection with underscores. Add binaries and octales. (I took the regular expressions from the TypeScript highlighting file and adapted them to Python).

    See: https://www.python.org/dev/peps/pep-0515/

Reviewers: Framework: Syntax Highlighting, dhaumann, cullmann

Reviewed By: Framework: Syntax Highlighting, dhaumann

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D25869