summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-02 21:56:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-02 22:40:57 (GMT)
commit807d86945336f676c9f650a6cbae9baa3191aaec (patch)
tree9346f121a5247378fc5859116c2adf1a2c4d133a /diff.c
parentb50005b79f6c77f9846c3f34ba319675fe489b72 (diff)
downloadgit-807d86945336f676c9f650a6cbae9baa3191aaec.zip
git-807d86945336f676c9f650a6cbae9baa3191aaec.tar.gz
git-807d86945336f676c9f650a6cbae9baa3191aaec.tar.bz2
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 75a8b16..bd04fdf 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.*\\)$" },
};