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.lorimer.id.au/gitweb.git/diff_plain/807d86945336f676c9f650a6cbae9baa3191aaec?ds=inline;hp=--cc 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 --- 807d86945336f676c9f650a6cbae9baa3191aaec diff --git a/diff.c b/diff.c index 75a8b16642..bd04fdfd28 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.*\\)$" }, };