File indexing completed on 2024-03-24 05:54:38
0001 /* 0002 * SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only 0005 **/ 0006 0007 #ifndef QTREGEXPHIGHLIGHTER_H 0008 #define QTREGEXPHIGHLIGHTER_H 0009 0010 #include "regexphighlighter.h" 0011 0012 class QTextEdit; 0013 0014 // krazy:excludeall=qclasses 0015 0016 class QtRegexpHighlighter : public RegexpHighlighter 0017 { 0018 public: 0019 QtRegexpHighlighter(QTextEdit *verifier); 0020 void highlightBlock(const QString &text) override; 0021 0022 private: 0023 QTextEdit *_editor = nullptr; 0024 }; 0025 0026 #endif /* QTREGEXPHIGHLIGHTER_H */