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>
This commit is contained in:
Giuseppe Bilotta 2008-08-02 23:56:44 +02:00 committed by Junio C Hamano
parent b50005b79f
commit 807d869453

2
diff.c
View File

@ -1386,7 +1386,7 @@ static struct builtin_funcname_pattern {
"\\|" "\\|"
"^\\(.*=[ \t]*\\(class\\|record\\).*\\)$" "^\\(.*=[ \t]*\\(class\\|record\\).*\\)$"
}, },
{ "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" }, { "tex", "^\\(\\\\\\(\\(sub\\)*section\\|chapter\\|part\\)\\*\\{0,1\\}{.*\\)$" },
{ "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" }, { "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" },
}; };