Python: Move highlighter and indenter class definitions to .cpp

Change-Id: Ib71d520977034ca66bd84c9188ffed5fe74e1ba0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-12-21 17:31:38 +01:00
parent 460b1641e0
commit 052ea6d231
5 changed files with 51 additions and 45 deletions

View File

@@ -5,24 +5,8 @@
#include <texteditor/syntaxhighlighter.h>
namespace Python {
namespace Internal {
namespace Python::Internal {
class Scanner;
TextEditor::SyntaxHighlighter *createPythonHighlighter();
class PythonHighlighter : public TextEditor::SyntaxHighlighter
{
public:
PythonHighlighter();
private:
void highlightBlock(const QString &text) override;
int highlightLine(const QString &text, int initialState);
void highlightImport(Internal::Scanner &scanner);
int m_lastIndent = 0;
bool withinLicenseHeader = false;
};
} // namespace Internal
} // namespace Python
} // namespace Python::Internal