aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index f390b1a777c..d0f60dc68af 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -315,8 +315,16 @@ git_config transfer.fsckObjects true
315 315
316# Configure 'git diff' hunk header format. 316# Configure 'git diff' hunk header format.
317 317
318# This xfuncname is based on Git's built-in 'cpp' pattern.
319# The first line rejects jump targets and access declarations.
320# The second line matches top-level functions and methods.
321# The third line matches preprocessor and DEFUN macros.
322git_config diff.cpp.xfuncname \
323'!^[ \t]*[A-Za-z_][A-Za-z_0-9]*:[[:space:]]*($|/[/*])
324^((::[[:space:]]*)?[A-Za-z_][A-Za-z_0-9]*[[:space:]]*\(.*)$
325^((#define[[:space:]]|DEFUN).*)$'
318git_config diff.elisp.xfuncname \ 326git_config diff.elisp.xfuncname \
319 '^\(def[^[:space:]]+[[:space:]]+([^()[:space:]]+)' 327 '^\([^[:space:]]*def[^[:space:]]+[[:space:]]+([^()[:space:]]+)'
320git_config 'diff.m4.xfuncname' '^((m4_)?define|A._DEFUN(_ONCE)?)\([^),]*' 328git_config 'diff.m4.xfuncname' '^((m4_)?define|A._DEFUN(_ONCE)?)\([^),]*'
321git_config 'diff.make.xfuncname' \ 329git_config 'diff.make.xfuncname' \
322 '^([$.[:alnum:]_].*:|[[:alnum:]_]+[[:space:]]*([*:+]?[:?]?|!?)=|define .*)' 330 '^([$.[:alnum:]_].*:|[[:alnum:]_]+[[:space:]]*([*:+]?[:?]?|!?)=|define .*)'