Code

diff hunk pattern: fix misconverted "\{" tex macro introducers
authorJunio C Hamano <gitster@pobox.com>
Sat, 20 Sep 2008 22:30:12 +0000 (15:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Sep 2008 22:30:17 +0000 (15:30 -0700)
Pointed out by Brandon Casey.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c

diff --git a/diff.c b/diff.c
index 175a044a344aa848530e72b16355be9694249494..a28373861689d1baf02ffdf969da1e843ea9c237 100644 (file)
--- 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 },