[Python Backend] Port QRegExp to QRegularExpression

Authored by ahmadsamir on Feb 10 2020, 7:06 AM.

Description

[Python Backend] Port QRegExp to QRegularExpression

PythonHighlighter::highlightBlock(): Make the regex's static const to
improve performance, assuming this is a high traffic code path. Also use
QVector instead of QList.

All unit tests pass except for testlua (fails the same way on master);
and testworksheet which hangs (on master too).

A quick test with a pythong session in cantor shows that syntax highlighting
still works.

Details

Committed
ahmadsamirFeb 21 2020, 4:58 PM
Parents
R55:1f2dadf687d1: Fix minor compiler warnings
Branches
Unknown
Tags
Unknown