[PATCH] diff: chapter and part in funcname for tex
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Aug 2, 2008, 06:35 UTC
- Message-ID
- <1217658945-29908-1-git-send-email-giuseppe.bilotta@gmail.com>
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. ---
I know that technically speaking this should have been two separate patches because they are two logically separate changes, but they are really rather braindead so please accept them as one :)
diff.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/diff.c b/diff.c index c253015..776bce1 100644 --- a/diff.c +++ b/diff.c @@ -1380,7 +1380,7 @@ static struct builtin_funcname_pattern { "^[ ]*\\(\\([ ]*" "[A-Za-z_][A-Za-z_0-9]*\\)\\{2,\\}" "[ ]*([^;]*\\)$" }, - { "tex", "^\\(\\\\\\(sub\\)*section{.*\\)$" }, + { "tex", "^\\(\\\\\\(\\(sub\\)*section\\|chapter\\|part\\)\\*\\?{.*\\)$" }, { "ruby", "^\\s*\\(\\(class\\|module\\|def\\)\\s.*\\)$" }, };
-- 1.5.6.3