aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-20 18:36:22 -0700
committerJunio C Hamano <gitster@pobox.com>2008-09-20 18:37:47 -0700
commit92bb978541af02ac624d1b9aeec296691cc15734 (patch)
treeb303d263bdf8406f3d2ccc39c7ca5045c114dd07 /diff.c
parent3d8dccd74aa29a9019c4e8b52e75a40189e6f5cb (diff)
parent96d1a8e9d44fd635fad8466dbe0aab6d73495c9f (diff)
downloadgit-92bb978541af02ac624d1b9aeec296691cc15734.tar.gz
git-92bb978541af02ac624d1b9aeec296691cc15734.tar.xz
Merge branch 'bc/maint-diff-hunk-header-fix' into bc/master-diff-hunk-header-fix
* bc/maint-diff-hunk-header-fix: diff hunk pattern: fix misconverted "\{" tex macro introducers Conflicts: diff.c
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 1bcbbd5bb..0f98bff46 100644
--- a/diff.c
+++ b/diff.c
@@ -1421,8 +1421,10 @@ static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
{ "python", "^[ \t]*((class|def)[ \t].*)$", REG_EXTENDED },
{ "ruby", "^[ \t]*((class|module|def)[ \t].*)$",
REG_EXTENDED },
+ { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
+ REG_EXTENDED },
{ "tex",
- "^(\\\\((sub)*section|chapter|part)\\*{0,1}\{.*)$",
+ "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
REG_EXTENDED },
};