Skip to content

Commit f0b4fd4

Browse files
committed
Merge branch 'tr/userdiff-c-returns-pointer' into maint
* tr/userdiff-c-returns-pointer: userdiff: allow * between cpp funcname words
2 parents 406cc9b + 37e7793 commit f0b4fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userdiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ PATTERNS("cpp",
115115
/* Jump targets or access declarations */
116116
"!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:.*$\n"
117117
/* C/++ functions/methods at top level */
118-
"^([A-Za-z_][A-Za-z_0-9]*([ \t]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
118+
"^([A-Za-z_][A-Za-z_0-9]*([ \t*]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
119119
/* compound type at top level */
120120
"^((struct|class|enum)[^;]*)$",
121121
/* -- */

0 commit comments

Comments
 (0)