summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-12-13 22:57:19 -0800
committerJunio C Hamano <gitster@pobox.com>2011-12-13 22:57:19 -0800
commit357ba5cf0d4c77c6b4ad8d2cc604392687a3e2a6 (patch)
tree494aaff8a38b7d71c9b23b8c4176b27de433e3fb /userdiff.c
parentb661a4bc1e172a9c67bf62bdc2715bd4efbc16e5 (diff)
parent37e7793d473019eac69c347f1a79e3273567b9bf (diff)
downloadgit-357ba5cf0d4c77c6b4ad8d2cc604392687a3e2a6.tar.gz
Merge branch 'tr/userdiff-c-returns-pointer'
* tr/userdiff-c-returns-pointer: userdiff: allow * between cpp funcname words
Diffstat (limited to 'userdiff.c')
-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)[^;]*)$",
/* -- */