2023-01-27 14:17:46 +01:00
|
|
|
// Copyright (c) 2018 Artur Shepilko
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2016-11-16 12:51:32 -06:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <vcsbase/baseannotationhighlighter.h>
|
|
|
|
|
#include <QRegularExpression>
|
|
|
|
|
|
|
|
|
|
namespace Fossil {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class FossilAnnotationHighlighter : public VcsBase::BaseAnnotationHighlighter
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit FossilAnnotationHighlighter(const ChangeNumbers &changeNumbers,
|
|
|
|
|
QTextDocument *document = nullptr);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QString changeNumber(const QString &block) const final;
|
|
|
|
|
QRegularExpression m_changesetIdPattern;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Fossil
|