From: Junio C Hamano Date: Sat, 20 Sep 2008 22:30:12 +0000 (-0700) Subject: diff hunk pattern: fix misconverted "\{" tex macro introducers X-Git-Tag: v1.6.0.3~52^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96d1a8e9d44fd635fad8466dbe0aab6d73495c9f;p=git.git diff hunk pattern: fix misconverted "\{" tex macro introducers Pointed out by Brandon Casey. Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 175a044a3..a28373861 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 },