Skip to content

Commit 9117673

Browse files
authored
Merge pull request #318 from cesar-douady/function_highlight
allow space before parenthesis at end of functions
2 parents cd7cffa + 7189470 commit 9117673

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SeerCppSourceHighlighter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void SeerCppSourceHighlighter::setHighlighterSettings (const SeerHighlighterSett
9494
_highlightingRules.append(rule);
9595

9696
// Set function format and expression.
97-
rule.pattern = QRegularExpression(QStringLiteral("\\b[A-Za-z0-9_]+(?=\\()"));
97+
rule.pattern = QRegularExpression(QStringLiteral("\\b[A-Za-z0-9_]+(?=\\s*\\()"));
9898
rule.format = _functionFormat;
9999
_highlightingRules.append(rule);
100100

0 commit comments

Comments
 (0)