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 /diff.c | |
parent | b50005b79f6c77f9846c3f34ba319675fe489b72 (diff) | |
download | git-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.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.*\\)$" }, }; |