Skip to content

Commit 92bb978

Browse files
committed
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
2 parents 3d8dccd + 96d1a8e commit 92bb978

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

diff.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,8 +1421,10 @@ static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
14211421
{ "python", "^[ \t]*((class|def)[ \t].*)$", REG_EXTENDED },
14221422
{ "ruby", "^[ \t]*((class|module|def)[ \t].*)$",
14231423
REG_EXTENDED },
1424+
{ "bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
1425+
REG_EXTENDED },
14241426
{ "tex",
1425-
"^(\\\\((sub)*section|chapter|part)\\*{0,1}\{.*)$",
1427+
"^(\\\\((sub)*section|chapter|part)\\*{0,1}\\{.*)$",
14261428
REG_EXTENDED },
14271429
};
14281430

0 commit comments

Comments
 (0)