summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-12-13 22:57:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-12-13 22:57:19 -0800
commit357ba5cf0d4c77c6b4ad8d2cc604392687a3e2a6 (patch)
tree494aaff8a38b7d71c9b23b8c4176b27de433e3fb
parentMerge branch 'bc/maint-apply-check-no-patch' (diff)
parentuserdiff: allow * between cpp funcname words (diff)
downloadtgif-357ba5cf0d4c77c6b4ad8d2cc604392687a3e2a6.tar.xz
Merge branch 'tr/userdiff-c-returns-pointer'
* tr/userdiff-c-returns-pointer: userdiff: allow * between cpp funcname words
-rw-r--r--userdiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userdiff.c b/userdiff.c
index 7c983c14ff..76109da4bc 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -118,7 +118,7 @@ PATTERNS("cpp",
/* Jump targets or access declarations */
"!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:.*$\n"
/* C/++ functions/methods at top level */
- "^([A-Za-z_][A-Za-z_0-9]*([ \t]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
+ "^([A-Za-z_][A-Za-z_0-9]*([ \t*]+[A-Za-z_][A-Za-z_0-9]*([ \t]*::[ \t]*[^[:space:]]+)?){1,}[ \t]*\\([^;]*)$\n"
/* compound type at top level */
"^((struct|class|enum)[^;]*)$",
/* -- */