aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-02-20 19:01:16 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-20 20:21:43 -0800
commit14a5c7c19351a7db56803c9086b133fe131f55f6 (patch)
tree4b38915006ab5081ba52b50ea5372cebbbf83dd8 /diff.c
parent1bd38e8dcca03e318d6000d62cf74c541945a8ba (diff)
downloadgit-14a5c7c19351a7db56803c9086b133fe131f55f6.tar.gz
git-14a5c7c19351a7db56803c9086b133fe131f55f6.tar.xz
diff: fix java funcname pattern for solaris
The Solaris regex library doesn't like having the '$' anchor inside capture parentheses. It rejects the match, causing t4018 to fail. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index c30c25227..699b21f4e 100644
--- a/diff.c
+++ b/diff.c
@@ -1199,7 +1199,7 @@ static struct builtin_funcname_pattern {
"new\\|return\\|switch\\|throw\\|while\\)\n"
"^[ ]*\\(\\([ ]*"
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
- "[ ]*([^;]*$\\)" },
+ "[ ]*([^;]*\\)$" },
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
};