forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user