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>
Giuseppe Bilotta committed
Aug 2, 2008 at 23:56 UTC
807d86945336f676c9f650a6cbae9baa3191aaec
1 file changed
+1
-1
diff.c
+1
-1
@@ -1386,7 +1386,7 @@ static struct builtin_funcname_pattern {
1386
"\\|"
1387
"^\\(.*=[ \t]*\\(class\\|record\\).*\\)$"
1388
},
1389
- { "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" },
1389
+ { "tex", "^\\(\\\\\\(\\(sub\\)*section\\|chapter\\|part\\)\\*\\{0,1\\}{.*\\)$" },
1390
{ "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" },
1391
};
1392