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>
Jeff King committed
Feb 20, 2008 at 19:01 UTC
14a5c7c19351a7db56803c9086b133fe131f55f6
1 file changed
+1
-1
diff.c
+1
-1
@@ -1199,7 +1199,7 @@ static struct builtin_funcname_pattern {
1199
"new\\|return\\|switch\\|throw\\|while\\)\n"
1200
"^[ ]*\\(\\([ ]*"
1201
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
1202
- "[ ]*([^;]*$\\)" },
1202
+ "[ ]*([^;]*\\)$" },
1203
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
1204
};
1205