@matheusbsbs / matheus-bagliano / commits / 96d1a8e9d4
Fork 0

diff hunk pattern: fix misconverted "\{" tex macro introducers

Pointed out by Brandon Casey. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Sep 20, 2008 at 15:30 UTC 96d1a8e9d44fd635fad8466dbe0aab6d73495c9f
1 file changed +2 -2
diff.c
+2 -2
@@ -1409,10 +1409,10 @@ static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
1409 "|"
1410 "^(.*=[ \t]*(class|record).*)$",
1411 REG_EXTENDED },
1412 - { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
1412 + { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
1413 REG_EXTENDED },
1414 { "tex",
1415 - "^(\\\\((sub)*section|chapter|part)\\*{0,1}\{.*)$",
1415 + "^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
1416 REG_EXTENDED },
1417 { "ruby", "^[ \t]*((class|module|def)[ \t].*)$",
1418 REG_EXTENDED },