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

Authored by nibags on Dec 11 2019, 5:35 AM.

Details

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/

Diff Detail

Repository
R216 Syntax Highlighting
Branch
python-numbers
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 19677
Build 19695: arc lint + arc unit
nibags created this revision.Dec 11 2019, 5:35 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptDec 11 2019, 5:35 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.Dec 11 2019, 5:35 AM
nibags edited the summary of this revision. (Show Details)Dec 11 2019, 5:40 AM
nibags updated this revision to Diff 71242.Dec 11 2019, 5:47 AM
  • Fix autotest
dhaumann accepted this revision.Dec 11 2019, 2:06 PM
This revision is now accepted and ready to land.Dec 11 2019, 2:06 PM
nibags updated this revision to Diff 71333.Dec 12 2019, 3:56 AM
  • Improve number delimiters (use lookbehind)
nibags closed this revision.Dec 13 2019, 2:23 AM