Skip to content

Commit 357ba5c

Browse files
committed
Merge branch 'tr/userdiff-c-returns-pointer'
* tr/userdiff-c-returns-pointer: userdiff: allow * between cpp funcname words
2 parents b661a4b + 37e7793 commit 357ba5c

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
@@ -118,7 +118,7 @@ PATTERNS("cpp",
118118
/* Jump targets or access declarations */
119119
"!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:.*$\n"
120120
/* C/++ functions/methods at top level */
121-
"^([A-Za-z_][A-Za-z_0-9]*([ \t]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
121+
"^([A-Za-z_][A-Za-z_0-9]*([ \t*]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
122122
/* compound type at top level */
123123
"^((struct|class|enum)[^;]*)$",
124124
/* -- */

0 commit comments

Comments
 (0)