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>
This commit is contained in:
parent
1bd38e8dcc
commit
14a5c7c193
2
diff.c
2
diff.c
@ -1199,7 +1199,7 @@ static struct builtin_funcname_pattern {
|
|||||||
"new\\|return\\|switch\\|throw\\|while\\)\n"
|
"new\\|return\\|switch\\|throw\\|while\\)\n"
|
||||||
"^[ ]*\\(\\([ ]*"
|
"^[ ]*\\(\\([ ]*"
|
||||||
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
|
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
|
||||||
"[ ]*([^;]*$\\)" },
|
"[ ]*([^;]*\\)$" },
|
||||||
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
|
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user