Only apply label highlighter on unbroken string up to ':' character
MODIFY
src/editor/rvsyntaxhighlighter.cpp
src/editor/rvsyntaxhighlighter.cpp
@@ -40,7 +40,7 @@ RVSyntaxHighlighter::RVSyntaxHighlighter(QTextDocument* parent, std::shared_ptr<
// Labels
labelFormat.setForeground(QColor(Colors::Medalist));
- rule.pattern = QRegularExpression("(.*?[:])");
+ rule.pattern = QRegularExpression(R"([\S]+:)");
rule.format = labelFormat;
m_highlightingRules.append(rule);

Only apply label highlighter on unbroken string up to ':' character #74