diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-08-02 23:56:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-02 15:40:57 -0700 |
commit | 807d86945336f676c9f650a6cbae9baa3191aaec (patch) | |
tree | 9346f121a5247378fc5859116c2adf1a2c4d133a | |
parent | Teach "git diff -p" Pascal/Delphi funcname pattern (diff) | |
download | tgif-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>
-rw-r--r-- | diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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.*\\)$" }, }; |