aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-02 23:56:44 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-02 15:40:57 -0700
commit807d86945336f676c9f650a6cbae9baa3191aaec (patch)
tree9346f121a5247378fc5859116c2adf1a2c4d133a /diff.c
parentb50005b79f6c77f9846c3f34ba319675fe489b72 (diff)
downloadgit-807d86945336f676c9f650a6cbae9baa3191aaec.tar.gz
git-807d86945336f676c9f650a6cbae9baa3191aaec.tar.xz
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 <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
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.*\\)$" },
};