diff options
author | Brandon Casey <casey@nrlssc.navy.mil> | 2008-09-22 18:26:20 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-23 01:48:49 -0700 |
commit | fdac6692a0b0eda293f9f1bf4bc49b05b29f3c45 (patch) | |
tree | 86f2deffd86eb8f504608d75203cacd54357e7a0 | |
parent | 4be4680cbb37cd803fa018c736879d936cd45671 (diff) | |
download | git-fdac6692a0b0eda293f9f1bf4bc49b05b29f3c45.tar.gz git-fdac6692a0b0eda293f9f1bf4bc49b05b29f3c45.tar.xz |
t4018-diff-funcname: test syntax of builtin xfuncname patterns
[jc: fixes bibtex pattern breakage exposed by this test]
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | diff.c | 2 | ||||
-rwxr-xr-x | t/t4018-diff-funcname.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1404,7 +1404,7 @@ static const struct funcname_pattern_entry *funcname_pattern(const char *ident) } static const struct funcname_pattern_entry builtin_funcname_pattern[] = { - { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$", + { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$", REG_EXTENDED }, { "html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$", REG_EXTENDED }, { "java", diff --git a/t/t4018-diff-funcname.sh b/t/t4018-diff-funcname.sh index 99fff973e..520e095c5 100755 --- a/t/t4018-diff-funcname.sh +++ b/t/t4018-diff-funcname.sh @@ -32,7 +32,7 @@ EOF sed 's/beer\\/beer,\\/' < Beer.java > Beer-correct.java -builtin_patterns="bibtex java pascal ruby tex" +builtin_patterns="bibtex html java pascal php python ruby tex" for p in $builtin_patterns do test_expect_success "builtin $p pattern compiles" ' |