Files
qt-creator/src/plugins/fossil/annotationhighlighter.h

25 lines
673 B
C
Raw Normal View History

// Copyright (c) 2018 Artur Shepilko
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#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