mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 17:10:44 +08:00
made final adjustments to remove boilerplate
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
SeerSourceHighlighter::SeerSourceHighlighter (QTextDocument* parent) : QSyntaxHighlighter(parent) {}
|
||||
|
||||
const SeerHighlighterSettings& SeerSourceHighlighter::highlighterSettings() {
|
||||
return _highlighterSettings;
|
||||
}
|
||||
|
||||
SeerSourceHighlighter* getSourceHighlighter(QString const& file, SeerHighlighterSettings settings) {
|
||||
QRegularExpression cpp_re("(?:" + settings.sourceSuffixes() + ")$");
|
||||
if (file.contains(cpp_re)) {
|
||||
|
||||
Reference in New Issue
Block a user