From: Giuseppe Bilotta Date: Sat, 2 Aug 2008 21:56:44 +0000 (+0200) Subject: diff: chapter and part in funcname for tex X-Git-Tag: v1.6.0-rc2~33 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=807d86945336f676c9f650a6cbae9baa3191aaec;p=git.git diff: chapter and part in funcname for tex This patch enhances the tex funcname by adding support for chapter and part sectioning commands. It also matches the starred version of the sectioning commands. Signed-off-by: Giuseppe Bilotta Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 75a8b1664..bd04fdfd2 100644 --- a/diff.c +++ b/diff.c @@ -1386,7 +1386,7 @@ static struct builtin_funcname_pattern { "\\|" "^\\(.*=[ \t]*\\(class\\|record\\).*\\)$" }, - { "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" }, + { "tex", "^\\(\\\\\\(\\(sub\\)*section\\|chapter\\|part\\)\\*\\{0,1\\}{.*\\)$" }, { "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" }, };