summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-09-20 15:30:12 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-09-20 15:30:17 -0700
commit96d1a8e9d44fd635fad8466dbe0aab6d73495c9f (patch)
tree24bbb0c37cba03fdeee47e0ac7b35b9aa09467ff
parentdiff: use extended regexp to find hunk headers (diff)
downloadtgif-96d1a8e9d44fd635fad8466dbe0aab6d73495c9f.tar.xz
diff hunk pattern: fix misconverted "\{" tex macro introducers
Pointed out by Brandon Casey. Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff.c b/diff.c
index 175a044a34..a283738616 100644
--- a/diff.c
+++ b/diff.c
@@ -1409,10 +1409,10 @@ static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
"|"
"^(.*=[ \t]*(class|record).*)$",
REG_EXTENDED },
- { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
+ { "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 },
{ "ruby", "^[ \t]*((class|module|def)[ \t].*)$",
REG_EXTENDED },