mirror of
https://github.com/git/git.git
synced 2024-11-20 15:04:26 +01:00
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"
|
||||
"^[ ]*\\(\\([ ]*"
|
||||
"[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}"
|
||||
"[ ]*([^;]*$\\)" },
|
||||
"[ ]*([^;]*\\)$" },
|
||||
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user